I'm trying to read document score of lucene search results.
I get a set of document scores through the hits object when I use the following method :
Hits hits = IndexSearcher.search(myQuery);
However,if i ...
I have a solr instance containing documents which have a 'startTime' field ranging from last month to a year from now. I'd like to add a boost query/function to boost the ...
I am having problem with lucene boosting, Iam trying to boost a particular document which matches with the (firstname)field specified
I have posted the part of the codeenter code hereprivate static Document ...
I want to add score for documents dynamically. For this, the method that I know right now is to use "add". Using this method, everytime I need to get the contents ...
In lucene 3.1 i have a large boolean query, that i execute like so:
IndexSearcher is = new IndexSearcher(myDir);
is.search(query, 10);
I get 10 results just fine, but they are sorted by docId, and ...