solr

Developing custom facet calculations in SOLR

I'm looking into using Solr for a project where we have some specific faceting requirements. From what I've learned, Solr provides range-based facets, where Solr can provide facets of different value-ranges or date-ranges, e.i. field values are "grouped" and aggregated into different bins. I would like to do something similar, but I wan...

Boosting documents in Solr based on the vote count

Hello all, I have a field in my schema which holds the number of votes a document has. How can I boost documents based on that number? Something like the one which has the maximum number has a boost of 10, the one with the smallest number has 0.5 and in between the values get calculated automatically. What I do now is this, but it do...

Solr Merging Results of 2 Cores Into Only Those Results That Have A Matching Field

I am trying to figure out if how I can accomplish the following and none of the answers I have found so far seem to fit: I have a fairly static and large set of resources I need to have indexed and searchable. Solr seems to be a perfect fit for that. In addition I need to have the ability for my users to add resources from the main data...

How to enable code assist for Solr in php using ZendStudio

Hi: I have just installed the Solr extension for php and I'm trying to set ZendStudio to recognize the lib so I can get code assist for it. I read here that I should put a stub file for the library in the path, but I couldn't find such a file, and before I code it myself... here I am. Thanks! ...

SOLR recover from deleted index files

When I delete solr's index files on disk, (found in /solr/data/index and solr/data/spellchecker), solr throws an exception whenever I try to make a request to it: java.lang.RuntimeException: java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.NIOFSDirectory@/…/solr/data/index: The only way I've found ...

date search on solr using mvc.net(how to define custom date time field in schema)

hi... I am using solr for search in mvc.net application,and its working very well. but now i want to search on solr by date, so when i add a new node for date in my xml and try it to post on solr thn it gives some error like (unknown field 'date').... thn i add new field in solr schema nemed ('date'), so plz tell me what type i define ...

Can solr be used to increment/decrement?

I am working on a project right now that has a solr index of counts and ids. I am currently researching if it is possible to increment/decrement on solr directly, instead of having to retrieve the data, increment it with PHP, and then reinsert it into solr. I have spent an hour googling variations of this to no avail. Any information wo...

Solr - Writing result of an Analyzer to different fields

Hello all, I have read a couple of tutorials and browsed the Solr documentation. But one thing isn't clear to me. Let me explain: Let's asume that the following document shall be indexed: <doc> <field name="id">R12345</field> <field name="title">My title</field> <field name="content">My Content</field> </doc> Contrary to this ...

Request handle solrconfig.xml Spellchecker

Hello, I am trying to set up spellchecker, according to solr documentation. But when I am testing, I don't have any suggestion. My piece of code follows: <searchComponent name="spellcheck" class="solr.SpellCheckComponent"> <str name="queryAnalyzerFieldType">textSpell</str> <lst name="spellchecker"> <str name="classn...

Show the whole query in Solr

Hello, I can't manage to get shown all the query when I make a research in Solr. This is my log4j.properties. log4j.rootLogger=INFO,CONSOLE log4j.logger.org.springframework=INFO,CONSOLE log4j.logger.org.apache=DEBUG,CONSOLE #log4j.logger.CONTENT=INFO,CONSOLE log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSO...

Solr, force to read changed index

I have a lucene index that i build and update using raw lucene indexers. I was wondering if there is a way to force solr to re-read the index without restarting the solr instance. Ive tried the update?commit=true but it doesnt seem to matter. The only way i can be sure solr -re-reads the index is by a total restart, which of course is...

Solr on a .NET site

I've got an ASP.NET site backed with a SQL Server database. I'm been using Lucene.NET to index and search the database. I'm adding faceted search navigation to the results page (the facets are a hiarchical category tree). I asked yesterday to make sure I was using the right technique for faceting. All I've gotten so far is a suggestion t...

Documents failing to save to solr using PHP SolrClient

Hi, I've got a bit of a problem that I can't seem to get to the bottom of. I'm a bit fo a Solr Noobie so stick with me here. I am writing a script to populate a solr instance with a small subset of documents, around 250 using the PHP SolrClient. The script runs through and seems to be populating fine. However my document count nev...

Problems with solr queries

Hello, when I make a search against Solr in my local machine, I get a query like this: http://localhost:8080/solr/project/select/?q=concept&amp;version=2.2&amp;start=0&amp;rows=10&amp;indent=on But instead, I would like to get a complete query with all the settings active, filters, tokeinzer... etc. For instans, something like thi...

Problem with spellchecker

Hello! Why I don't get any suggestion when I execute this query agains Solr: q=%2B%28text%3A%28gasal%29%29&suggestField=contentOriginal&ontologySeed=gasal&spellcheck.build=true&spellcheck.q=gasal&spellcheck=true&spellcheck.collate=true&hl=true&hl.snippets=5&hl.fl=text&hl.fl=text&rows=12&start=0&qt=%2Fsuggestprobabilistic I am sea...

Solr updates are very slow

I am seeing extremely slow Solr updates in my database. The database only has 900 documents. We use autocommit with the following settings, and once in a while autocommit is taking long time blocking updates: <autoCommit> <maxDocs>10000</maxDocs> <maxTime>1000</maxTime> </autoCommit> What in the world can be happening for 74 sec...

SOLR hsin parse error

Hi, I am getting the following error when using the hsin function: org.apache.lucene.queryParser.ParseException: Cannot parse '(: AND val:"recip(hsin(12.9365,77.5447,lat,long,3963.205,true), 1, 1, 0)")': Unknown function hsin in FunctionQuery('recip(hsin(12.9365,77.5447,lat,long,3963.205,true), 1, 1, 0)', pos=11) Has anyone faced this ...

Solr query parser that allows specifying multiple default fields

I would like to use the Dismax query parser because it allows me to specify multiple default search fields (using the 'qf' parameter) as well as other nice features such as field boosting. However, I want a query parser/scoring algorithm that takes the sum of all field scores, rather than just the max. Is there a way to configure D...

how do I normalise a solr/lucene score?

Hi, I am trying to work out how to improve the scoring of solr search results. My application needs to take the score from the solr results and display a number of “stars” depending on how good the result(s) are to the query. 5 Stars = almost/exact down to 0 stars meaning not matching the search very well, e.g. only one element hits. ...

Is any work being done on a .Net port of Solr?

I'm looking to embed Solr as a library in a .Net app. I understand that there is an embedded Java client which queries a Solr core directly, and I could potentially run this on IKVM, however, I'm looking for something which has been translated. I also have looked at Solrnet, but it appears to be only a client to an http-hosted Solr insta...