solr

Solr not searching (dynamically created) fields

I have imported docs into Solr that have fields dynamically created from a pattern (mostly *_s). In the back-end (/solr/admin), I can see that they exist: the aggregate stats, like term frequency, appear correctly. They are all listed as indexed & stored. However, they do not appear in queries, even when I search across all fields, for ...

Per query relevance elevation for solr?

I want to tune the relevance of solr search results on a per user basis - based on the number of times the user has clicked through a result before. Frequently hit items FOR THAT USER should rise to the top of their search results. Is there a way to provide custom boost/elevation for particular document ids on the query? I'm thinking in...

Is there a limit to the number of facet.field and facet.query that you can use in one statement?

We are building an advanced search form which results in 31 facet.fields and 88 facet.query items to be used (119 in total) in order to get the total number of results. When we hit the 100 mark, it stopped working. Is there a limit one of you know of? And is this configurable? ...

Can you use POST to run a query in Solr (/select)

I have queries that I am running against out solr index that sometimes have very long query parameters, I get errors when i run these queries, which i assume are do to the limit of a GET query parameters. Here is the method I use to query (JSON), this is to show I am using the Http Extensions (the client i use is a thin wrapper for Http...

Solr spellcheck configuration

I am trying to build the spellcheck index with IndexBasedSpellChecker <lst name="spellchecker"> <str name="name">default</str> <str name="field">text</str> <str name="spellcheckIndexDir">./spellchecker</str> </lst> And I want to specify the dynamic field "*_text" as the field option: <dynamicField name="*_text" stored="false" t...

Controlling Solr score/sort

I want to filter a property within a range, but items that does not have the property should come last in the result. My solution was to set it to -1 if the property was not set. +(property:[10000000001 TO 10000000019] property:"-1"^0.5) This doesn't work, since every document with property:-1 get a very high score, for some reason. I...

Detailed information in Lucene/Solr results

After having performed a search in Lucene/Solr without having specified a field, how can I know in which fields of a result document the search string was found (and how often)? ...

Search for short words with SOLR

I am using SOLR along with NGramTokenizerFactory to help create search tokens for substrings of words NGramTokenizer is configured with a minimum word length of 3 This means that I can search for e.g. "unb" and then match the word "unbelievable". However I have a problem with short words like "I" and "in". These are not indexed by SOL...

How to deploy the same webapp with different logging? (Tomcat, Solr)

We are using multiple solr instances on tomcat but want that they log into different log files. How could we do this? We are using the follwing xml file under tomcat/conf/Catalina/localhost to make it working: <Context docBase="/pathtosolr/dist/apache-solr-1.4.0.war" debug="0" crossContext="true" > <Environment name="solr/home" type...

Can I store and join based on external attributes in Lucene/Solr

Is there a way to store information about documents that are stored in Lucene such that I don't have to update the entire document to update certain attributes about the documents? For instance, let's say I had a bunch of documents, and that I wanted to update a permissions list of who was allowed to see the documents on a daily, or m...

How to score high of document containing "Burj Khalifa" in title and then in summary field in SOLR

Hi, I want to sort document by relevancy i.e. First all docs having "Burj Khalifa" in title and then in summary field? and sort by publishdate as well. means latest documents must have high score. criteria is like sort by score with publishdate http://localhost:8080/solr/select?sort=score+desc,publishdate+desc&amp;q=Burj Khalifa ...

Solr/Lucene Scorer

We are currently working on a proof-of-concept for a client using Solr and have been able to configure all the features they want except the scoring. Problem is that they want scores that make results fall in buckets: Bucket 1: exact match on category (score = 4) Bucket 2: exact match on name (score = 3) Bucket 3: partial match on cat...

create multivalued index

How do we create multivalued index through code. ...

Indexing different type of Entities/Objects with Solr Lucene

Let's say I want to index my shop using Solr Lucene. I have many types of entities : Products, Product Reviews, Articles How do I get my Lucene to index those types, but each type with different Schema ? ...

Zend_Search_Lucene vs SOLR

Hi, I have recenlty stumbled into Zend Lucene port of Lucene project. I have a little bit experience with SOLR so I would like to know what is the difference between two of them especially from performance and installation side. As much as I know SOLR requires Tomcat serverlet running in web hosting in order to work, what about Zend L...

solr schema for article->paragraph structure

Hi guys, I want to index some articles and show the paragraph number in the search result. So I guess the solr schema should looks like this: article_id, paragraph_number, paragraph_content Therefore, I need to parse article first, extract paragraphs and index it one by one. I'm worried about the performance since one article can con...

Unable to retrieve computed distance in Spatial Solr queries

I'm using this plugin to allow spatial queries in Solr. I have followed the steps included in the documentation and I've got the spatial queries working fine. Now I want to retrieve the computed distance. I added these lines in the solrconfig.xml file: <searchComponent name="geodistance" class="nl.jteam.search.solrext.spatial.GeoDistan...

Can Apache Solr output HTML instead of XML?

The question is simple - we have a sample / test Solr app running that only responds with XML right now. Is there an easy way to change that output to HTML? Running Tomcat as the app server. ...

Problem opening Solr *.jsp pages with urllib2.urlopen.

I'm trying to open a page at http://localhost:8983/solr/admin/stats.jsp but urllib2.urlopen returns a blank string. It works fine for solr/ and solr/admin, but for all the pages above /solr/admin/ I get nothing but a blank string. 76]: t = urllib2.urlopen('http://localhost:8983/solr/admin/stats.jsp') 77]: s = t.read() 78]: s 78]: 79]...

SOLR - how to remove logically deleted documents?

I am implementing SOLR for a free text search for a project where the records available to be searched will need to be added and deleted on a large scale every day. Because of the scale I need to make sure that the size of the index is appropriate. On my test installation of SOLR, I index a set of 10 documents. Then I make a change in ...