How to increase fields in solr

I already have the gain defined in front of the hand. I have a field in the boost1 index called boost1 . This promotion field will have a value from 1 to 10, similar to the Google PR rating. This is a promotion that should be applied to every request executed in solr. here are the fields in my index

  • Id
  • Title
  • Text
  • Boost1

The boost field should apply to every request. I am trying to implement functionality similar to Google PR rank. Is there a way to do this using solr?

+5
lucene solr solrnet edismax dismax
source share
2 answers

you can add a boost during the request, for example.

 q={!boost b=boost1} 

How_can_I_boost_the_score_of_newer_documents

However, perhaps this may be explicitly added by you.

If you use dismax or edismax with a request handler, the Bf (Boost Functions) parameter can be used to enlarge documents. http://wiki.apache.org/solr/DisMaxQParserPlugin#bf_.28Boost_Functions.29

 bf=boost1^0.5 

This can be added to the default values ​​with the definition of the query handler so that they apply to all search queries.

you can use function queries to change the magnitude of a FunctionQuery boost

+9
source share

I think you need to use an index document to increase time . See this if you are indexing XML or this if using DataImportHandler .

0
source share

All Articles