Hello,
of course this is a problem. But the current solution doesn't find words
that are in the lucene indexe. Here are some samples:
https://issues.apache.org/jira/browse/LUCENENET-486 And this is a real
problem with a 'default' lucene analyzer. Not with a hypothetical ;)
Thank you
Björn
Am 17.04.2012 21:26, schrieb Digy:
GetPrefixQuery doesn't use analyzers, and it is a well known issue of
Lucene.
Suppose a hypothetical analyzer(with stemming) which stems 'went' as 'go'
and you want to search 'wentworth miller'.
A search like 'went*' would be converted to 'go*' which i guess wouldn't be
what you want.
DIGY
-----Original Message-----
From: Björn Kremer [mailto:[email protected]]
Sent: Tuesday, April 17, 2012 12:59 PM
To: [email protected]
Subject: Wildcard queries are not analyzed
Hello,
maybe I have found a little lucene problem: Wildcard queries are not
analyzed correctly. I'm using the german analyzer with the
'GermanDIN2Stemmer'.
In the lucene-index my name('Björn') is stored as 'bjorn'. If I performe a
wildcard query like 'björ*' the function 'GetPrefixQuery' does not analyze
the search term. So the query result is 'björ*' instead of 'bjor*'. (björ* =
no match, bjor* = match)
Thank You
Björn
-----
Checked by AVG - www.avg.com
Version: 2012.0.1913 / Virus Database: 2411/4940 - Release Date: 04/16/12