On 10/17/2018 5:06 PM, Vincenzo D'Amore wrote:
I tried to use constant score into qf parameter but I had an exception.
Is this normal? The qf parameter actually is something like this:

field1^3 field2^4 field3^5... etc.

You didn't actually say, but it sounds like you're trying to use "field^=3" in your qf parameter.  I did a test query with this on a 7.5 example and saw the same exception.

I'm betting that qf does not support the constant score boost option.  It's not mentioned as possible in the documentation.  I have no idea how difficult it would be to add that support.  Opening an enhancement issue in Jira is probably a good idea.

Because it's a query for an ecommerce website I don't want that the results
are influenced by tf/idf.

If you really don't want something to affect relevancy ranking, put it in a filter query.  Filter queries do not affect the score.

fq={!edismax qf="field1 field2"}XXXX

Where XXXX is the query text.  I tried that syntax out, and the parsed query looks like it did exactly what I expected.

Thanks,
Shawn

Reply via email to