Bick
Bick

Reputation: 18521

solr - Is it possible to set column weights in the schema (rather than in the query)

I want to set a few fields as more important in the query than others.
As I understan, I can set it in the request using qf parameter.

Is it possible to define it in the schema so that its calculation will be done pre-query thus faster?

Upvotes: 0

Views: 153

Answers (1)

Jayendra
Jayendra

Reputation: 52769

You can either define Index time boosts for the individual documents and fields.
This might be a little faster but more difficult to debug the scores.

However, it would be better to have a request handler defined with the fields and their respective boosts.
Much more easy to customize and does not require re-indexing of the data as well.

Upvotes: 2

Related Questions