문제

I 'm importing data using DIH to solr. In my schema.xml I have all my fields defined. I know there are two types of boosting techniques, query time or index time. Is it possible to boost fields by assigning weight to them during index time.

For example, if there are 4 fields id, title, description & keyword. Then I would like to "boost" the score if the search string is in title as compared to keyword.

Thanks

도움이 되었습니까?

해결책

using DIH you can boost the whole doc, not a specific field, as documented here.

But if you intend to boost a field, like title, this is easy to do on query time, in fact it is easier to do, and to change too. Why do you want to do it at index time, any special reason?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top