What's the motivation for wanting to do this? The reason I ask, is
score is a relative thing determined by Lucene based on your index
statistics. It is only meaningful for comparing the results of a
specific query with a specific instance of the index. In other words,
it isn't useful to filter on b/c there is no way of knowing what a
good cutoff value would be. So, you won't be able to do score:[1.2 TO
*] because score is a not an actual Field.
That being said, you probably could implement a HitCollector at the
Lucene level and somehow hook it into Solr to do what you want. Or,
of course, just stop processing the results in your app after you see
a score below a certain value. Naturally, this still means you have
to retrieve the results.
-Grant
On Feb 10, 2009, at 10:01 PM, Cheng Zhang wrote:
Hello,
Is there a way to set a score filter? I tried "+score:[1.2 TO *]"
but it did not work.
Many thanks,
Kevin
--------------------------
Grant Ingersoll
http://www.lucidimagination.com/
Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)
using Solr/Lucene:
http://www.lucidimagination.com/search