I'm using custom_filters_score to boost documents that match one or
more filters. Documents matching more of those filters should receive
a larger boost, but only up to a point.
For example a document matching 1 filters might get a boost of 1.2,
one matching 2 filters a boost of 1.44 but a document matching 3
filters would be capped at 1.44 (rather than 1.2 *1.44).
I can't find anything that looks like it might do that but I'd love to
be proved wrong. Failing that would a custom_filters_score option
along the lines of max_boost be of interest ? If so pointers to where
to start digging in the source gratefully accepted!
I'm using custom_filters_score to boost documents that match one or
more filters. Documents matching more of those filters should receive
a larger boost, but only up to a point.
For example a document matching 1 filters might get a boost of 1.2,
one matching 2 filters a boost of 1.44 but a document matching 3
filters would be capped at 1.44 (rather than 1.2 *1.44).
I can't find anything that looks like it might do that but I'd love to
be proved wrong. Failing that would a custom_filters_score option
along the lines of max_boost be of interest ? If so pointers to where
to start digging in the source gratefully accepted!
Heya, it definitely make sense, and should not be too difficult to add. The
custom_filters_score parse exists here:https://github.com/elasticsearch/elasticsearch/blob/master/src/main/j...,
you will need to add a parsing element for the max_score. Then, you will
need to change FiltersFunctionScore to allow to pass that max score and use
it in the computation there. If you run into problems, just ping.
Cool. I'll have a root around in there. Thanks!
Fred.
On Thu, May 17, 2012 at 7:28 PM, Frederick Cheung <
I'm using custom_filters_score to boost documents that match one or
more filters. Documents matching more of those filters should receive
a larger boost, but only up to a point.
For example a document matching 1 filters might get a boost of 1.2,
one matching 2 filters a boost of 1.44 but a document matching 3
filters would be capped at 1.44 (rather than 1.2 *1.44).
I can't find anything that looks like it might do that but I'd love to
be proved wrong. Failing that would a custom_filters_score option
along the lines of max_boost be of interest ? If so pointers to where
to start digging in the source gratefully accepted!
Heya, it definitely make sense, and should not be too difficult to add.
The
custom_filters_score parse exists here: https://github.com/elasticsearch/elasticsearch/blob/master/src/main/j...,
you will need to add a parsing element for the max_score. Then, you will
need to change FiltersFunctionScore to allow to pass that max score and
use
it in the computation there. If you run into problems, just ping.
Cool. I'll have a root around in there. Thanks!
Fred.
On Thu, May 17, 2012 at 7:28 PM, Frederick Cheung <
I'm using custom_filters_score to boost documents that match one or
more filters. Documents matching more of those filters should receive
a larger boost, but only up to a point.
For example a document matching 1 filters might get a boost of 1.2,
one matching 2 filters a boost of 1.44 but a document matching 3
filters would be capped at 1.44 (rather than 1.2 *1.44).
I can't find anything that looks like it might do that but I'd love to
be proved wrong. Failing that would a custom_filters_score option
along the lines of max_boost be of interest ? If so pointers to where
to start digging in the source gratefully accepted!
Heya, it definitely make sense, and should not be too difficult to add.
The
custom_filters_score parse exists here: https://github.com/elasticsearch/elasticsearch/blob/master/src/main/j...,
you will need to add a parsing element for the max_score. Then, you will
need to change FiltersFunctionScore to allow to pass that max score and
use
it in the computation there. If you run into problems, just ping.
Cool. I'll have a root around in there. Thanks!
Fred.
On Thu, May 17, 2012 at 7:28 PM, Frederick Cheung <
I'm using custom_filters_score to boost documents that match one or
more filters. Documents matching more of those filters should receive
a larger boost, but only up to a point.
For example a document matching 1 filters might get a boost of 1.2,
one matching 2 filters a boost of 1.44 but a document matching 3
filters would be capped at 1.44 (rather than 1.2 *1.44).
I can't find anything that looks like it might do that but I'd love to
be proved wrong. Failing that would a custom_filters_score option
along the lines of max_boost be of interest ? If so pointers to where
to start digging in the source gratefully accepted!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.