lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomer Levi <Tomer.L...@nice.com>
Subject Help Highlight Snippets Score
Date Thu, 21 Aug 2014 14:49:18 GMT
Hi,

I have a document with a textual field, I would like to sort the highlighted snippets by the
number of term occurrences.

For instance, when I have the following snippets:

"Solr Solr Solr"

"Solr Solr"

"Solr Solr Solr Solr"



I would like to get them ordered as:

"Solr Solr Solr Solr"

"Solr Solr Solr"

"Solr Solr"



After I debug the Highlighter I saw that it uses the org.apache.lucene.search.highlight.QueryScorer,
this scorer gives the same score to all the snippets.

*         Is there any other Scorer I can use?

*         How can I set different scorer in solrconfig.xml?



Thanks,

Tomer



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message