Boosting an or clause inside a custom score filter

Hi all,

I am trying to implement an advanced scoring using a custom filter score as
shown in this gist : https://gist.github.com/gboivin/59ccd243c8259e53cb16

But the boost attached to the clauses in the OR are not having any effect
on the result of the query since the score for these clauses is always 1 as
soon as they match.

Any way to apply a boost to these specific clauses or any criticism on the
query?

Thanks in advance!

Greg

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hi Greg,
as you already figured out, the boost in the internal clauses is not taken
into account. I'm not sure I understood why you don't put all those clauses
in the top level filters part of the custom filters score query. What is
the behaviour that you would expect there?

On Friday, July 19, 2013 6:54:12 PM UTC+2, Grégoire Boivin wrote:

Hi all,

I am trying to implement an advanced scoring using a custom filter score
as shown in this gist :
https://gist.github.com/gboivin/59ccd243c8259e53cb16

But the boost attached to the clauses in the OR are not having any effect
on the result of the query since the score for these clauses is always 1 as
soon as they match.

Any way to apply a boost to these specific clauses or any criticism on the
query?

Thanks in advance!

Greg

--
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.
For more options, visit https://groups.google.com/groups/opt_out.