Question

I am using SOLR. I have a field called weight. I want to have this value to boost every record with. Is there any way that I can specify it in config file?

No correct solution

OTHER TIPS

It's is possible. I can see 3 options.

  1. Use bq param or boost with function query
  2. Use BoostQueryParser as on example
  3. Apply boost in index time. You can use this option with update handler or DIH

In some cases I'm using either option 1 (to add boost based on date field) in other 3 (to apply a "document class" wide boost)

Options 1 and 3 are the easiest to store in config. 1 in search handler config, 3 in dataimport/update handler config

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top