Question

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

Was it helpful?

Solution

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?

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