lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ernesto De Santis <>
Subject Analyzer don't work with wildcard queries, snowball analyzer.
Date Thu, 31 Mar 2005 14:51:14 GMT

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.

            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.


Ernesto De Santis -
Córdoba 1147 Piso 6 Oficinas 3 y 4
(S2000AWO) Rosario, SF, Argentina.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message