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?

没有正确的解决方案

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top