muddassir hasan wrote:
Dear friends,

I have started using Solr recently. I am facing a problem that in a query to 
solr i can get results sorted either on my date filed or on score which is 
calculated through frequency and proximity of query keywords in indexed 
documents. Is there a way to get score which combines both i.e. if document is 
too relevant for the query then it should appear first and later documents 
which have a score lesser than a threshold are sorted on date.


I'm not sure... someone else can answer better. I think lucene 2.3 has something that makes this easier, but I don't know.


Moreover, I wanted to know is there a way to get multiple category results in 
one query i.e. i have a field named category in the document being indexed and 
for a query I want 2 most relevant results from each of the category for first 
10 results and similarly for further results.


I don't quite follow, do you just need an or query
  fq=category:(cat1 OR cat2)
that would limit your results to things that had either category.

Or are you referring to field collapsing?
https://issues.apache.org/jira/browse/SOLR-236

ryan

Reply via email to