lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jose garcia <>
Subject Issues with queries and fuzziness
Date Wed, 24 Aug 2011 15:29:29 GMT

I'm having some issues with queries using different fuzziness values and
StandardAnalyzer for a field:

1) *+any:climate~0.8 *, this query works ok returning results. Checking in
Luke the rewritten query is like: any:climat^0.16666652 any:climate

2) *+any:climate~0.9* , this query doesn't return results (the lucene index
contains exact matches for climate word, so some results are expected).
Checking in Luke the rewritten query is empty.

Same results are obtained both from a custom application and with Luke.

According to Lucene manual:

Starting with Lucene 1.9 an additional (optional) parameter can specify the
required similarity. The value is between 0 and 1, with a value closer to 1
only terms with a higher similarity will be matched.

I'm using Lucene 2.9.0, not sure if it's a bug or there's any reason to
explain the results obtained? Anyone knows what can be the problem?

Thanks in advance,
Jose GarcĂ­a

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message