Hi Erik
Ok, in PrefixQuery cases, non analyze is right.
But you think that non analyze in WildcardQuery is right?
You search "example" and obtain x results. You search "ex?mple" and don't obtain any result. This is correct for you? It is difficult to analyze wildcard queries in lucene code?
Ernesto.
Erik Hatcher escribi�:
Wildcard terms simply are not analyzed. How could it be possible to do this? What if I search for "a*" - how could you stem that?
Erik
On Mar 31, 2005, at 9:51 AM, Ernesto De Santis wrote:
Hi
I get an unexpected behavior when use wildcards in my queries.
I use a EnglishAnalyzer developed with SnowballAnalyzer. version 1.1_dev from Lucene in Action lib.
Analysis case: When use wildcards in the middle of one word, the word in not analyzed. Examples:
QueryParser qp = new QueryParser("body", analyzer); Query q = qp.parse("ex?mple"); String strq = q.toString(); assertEquals("body:ex?mpl", strq); //FAIL strq == body:ex?mple
qp = new QueryParser("body", analyzer); q = qp.parse("ex*ple"); strq = q.toString(); assertEquals("body:ex*pl", strq); //FAIL strq == body:ex*ple
With this behavior, the search does not find any document.
Bye Ernesto.
-- Ernesto De Santis - Colaborativa.net C�rdoba 1147 Piso 6 Oficinas 3 y 4 (S2000AWO) Rosario, SF, Argentina.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Ernesto De Santis - Colaborativa.net C�rdoba 1147 Piso 6 Oficinas 3 y 4 (S2000AWO) Rosario, SF, Argentina.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
