Different boosts to different fields


(georgi.mateev) #1

What I want to do is do a "fuzzy" (like this) query across multiple fields
where matches in certain fields should result in a higher score than
matches in other fields.
I tried to set different "boost" values to these fields in the mappings and
then run a fuzzy_like_this query over them, but it doesn't make any
difference to the ranking score in the end. The results are in the exactly
same order and with the exactly same score value.

How should I do it? I hope I don't have to run a mega-nested query and
boost the individual subqueries, as it is a faceted search and the indexed
documents contain about 40 fields. There must be a more convenient way, but
I can't seem to find it.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c26f462b-5009-4b68-b85d-2b5ae7592d07%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Ivan Brusic) #2

Are you omitting norms by any chance on your fields?

--
Ivan

On Thu, Jan 23, 2014 at 12:32 PM, georgi.mateev@jobvector.com wrote:

What I want to do is do a "fuzzy" (like this) query across multiple fields
where matches in certain fields should result in a higher score than
matches in other fields.
I tried to set different "boost" values to these fields in the mappings
and then run a fuzzy_like_this query over them, but it doesn't make any
difference to the ranking score in the end. The results are in the exactly
same order and with the exactly same score value.

How should I do it? I hope I don't have to run a mega-nested query and
boost the individual subqueries, as it is a faceted search and the indexed
documents contain about 40 fields. There must be a more convenient way, but
I can't seem to find it.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/c26f462b-5009-4b68-b85d-2b5ae7592d07%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCAUW%2BqzgEiJDRjFLw6GGy6xj3vWJXk%3D9_7uTaURhrf_g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Robert Schoenthal) #3

same Question here...it would be great if the fuzzy-like-this-query
supports ^ operators...
any workarounds out the?

Am Samstag, 25. Januar 2014 00:08:26 UTC+1 schrieb Ivan Brusic:

Are you omitting norms by any chance on your fields?

--
Ivan

On Thu, Jan 23, 2014 at 12:32 PM, <georgi...@jobvector.com <javascript:>>wrote:

What I want to do is do a "fuzzy" (like this) query across multiple
fields where matches in certain fields should result in a higher score than
matches in other fields.
I tried to set different "boost" values to these fields in the mappings
and then run a fuzzy_like_this query over them, but it doesn't make any
difference to the ranking score in the end. The results are in the exactly
same order and with the exactly same score value.

How should I do it? I hope I don't have to run a mega-nested query and
boost the individual subqueries, as it is a faceted search and the indexed
documents contain about 40 fields. There must be a more convenient way, but
I can't seem to find it.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/c26f462b-5009-4b68-b85d-2b5ae7592d07%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b191ff4a-e60c-4323-98da-4bff868afaa7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #4