Filter by a score threshold


(frazer) #1

From what i've read (http://wiki.apache.org/lucene-java/
LuceneFAQ#Can_I_filter_by_score.3F) filtering by score is not a good
idea in lucene.

I was wondering if there are any other options other than the
min_score filter in Elastic that would make doing something like this
more viable. I'm thinking along the lines of using scripting with the
doc score and max score, but im not sure if this is possible?


(Shay Banon) #2

Even if you use scripting, if you base your calc on the lucene score, you
will face the same problems, no way around it...

On Mon, Oct 3, 2011 at 3:51 PM, frazer frazer.horn@gmail.com wrote:

From what i've read (http://wiki.apache.org/lucene-java/
LuceneFAQ#Can_I_filter_by_score.3F) filtering by score is not a good
idea in lucene.

I was wondering if there are any other options other than the
min_score filter in Elastic that would make doing something like this
more viable. I'm thinking along the lines of using scripting with the
doc score and max score, but im not sure if this is possible?


(frazer) #3

Thanks Shay, just wanted to check there were no other options

On Oct 3, 5:01 pm, Shay Banon kim...@gmail.com wrote:

Even if you use scripting, if you base your calc on the lucene score, you
will face the same problems, no way around it...

On Mon, Oct 3, 2011 at 3:51 PM, frazer frazer.h...@gmail.com wrote:

From what i've read (http://wiki.apache.org/lucene-java/
LuceneFAQ#Can_I_filter_by_score.3F) filtering by score is not a good
idea in lucene.

I was wondering if there are any other options other than the
min_score filter in Elastic that would make doing something like this
more viable. I'm thinking along the lines of using scripting with the
doc score and max score, but im not sure if this is possible?


(system) #4