You have different options here. You can give more boost at indexing time to
the documents that have set the fields you want. For this to take effect you
will have to reindex and set omitNorms="false" to the fields you are going
to search. This same concept can be applied to boost single fields instead
of whole document boost.
Another option would be to use boosting queries at search time such as:
bq=video:[* TO *]^100 (this gives more boost to the documents that have
whatever value in video field).

The second one is much easy to play with as you don't have to reindex every
time you change a value. On the other said you pay the performance penalty
of running one extra query.


--
View this message in context: 
http://lucene.472066.n3.nabble.com/Boost-documents-based-on-the-number-of-their-fields-tp3266875p3267628.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to