문제

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