lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Trivial Update of "SolrRelevancyFAQ" by AndreHagenbruch
Date Thu, 11 Aug 2011 07:52:44 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrRelevancyFAQ" page has been changed by AndreHagenbruch:
http://wiki.apache.org/solr/SolrRelevancyFAQ?action=diff&rev1=19&rev2=20

  Index-time boosts are assigned with the optional attribute "boost" in the <doc> section
of the XML updating messages. See UpdateXmlMessages for more information.
  
  === Query Elevation Component ===
- To raise certain documents to the top of the result list based on a certain queries, one
can use the QueryElevationComponent.
+ To raise certain documents to the top of the result list based on a certain query, one can
use the QueryElevationComponent.
  
  == How can I change the score of a document based on the *value* of a field (say, "popularity")
==
  Use a FunctionQuery as part of your query.
@@ -186, +186 @@

  {{{
  http://localhost:8983/solr/select?q={!boost b=$dateboost v=$qq defType=dismax}&dateboost=recip(ms(NOW,manufacturedate_dt),3.16e-11,1,1)&qf=text&pf=text&qq=ipod
  }}}
+ Consider using reduced precision to prevent excessive memory consumption. You would instead
use '''recip(ms(NOW/HOUR,mydatefield),3.16e-11,1,1)'''. See [[http://search-lucene.com/m/nkgRTTSRos1/FunctionQueries+and+FieldCache+and+OOM&subj=FunctionQueries+and+FieldCache+and+OOM|this
thread]] for more information.
- 
- Consider using reduced precision to prevent excessive memory consumption. You would instead
use '''recip(ms(NOW/HOUR,mydatefield),3.16e-11,1,1)'''.
- See [[http://search-lucene.com/m/nkgRTTSRos1/FunctionQueries+and+FieldCache+and+OOM&subj=FunctionQueries+and+FieldCache+and+OOM|this
thread]] for more information.
  
  == How do I give a very low boost to documents that match my query ==
  In general the problem is that a "low" boost is still a boost, it can only improve the score
of documents that match. One way to fake a "negative boost" is to give a high boost to everything
that does *not* match. For example:

Mime
View raw message