lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lance Norskog" <goks...@gmail.com>
Subject Boosting by field contents
Date Thu, 20 Nov 2008 21:42:11 GMT
Is it possible to boost a document by the contents of a field? Given the
query:
 
  text field:value

I want to return all documents with 'text'. Documents where 'field = value'
boosted over documents where 'field = some other value'.

This query does it:

	(text field:value)^100 (text -field:value)

Is there a simpler way?  (I might have left out crucial AND/OR clauses, but
you get the picture.)
 
I don't remember much on this topic. Does it appear in the Lucene lists? Is
there a Lucene feature or open issue?

Thanks,

Lance


Mime
View raw message