lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <>
Subject RE: Strange behavior of the StandardAnalyzer
Date Wed, 17 Aug 2011 07:42:12 GMT

Do you use the same Analyzer for both searching and indexing. These typ of
issues only happen, if you have different analyzers. This type of query
should always work with StandardAnalyzer.
Which Lucene version and which analysis configuration do you have (including
matchVersion parameters)?


Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen

> -----Original Message-----
> From: Alain Sahli []
> Sent: Wednesday, August 17, 2011 9:31 AM
> To:
> Subject: Strange behavior of the StandardAnalyzer
> Hello,
> I set a field which contains a name of a person to Field.Index.ANALYZED. I
> the StandardAnalyzer for the seaching part and in general it works very
> But I found one strange case which I have to change to fit the expectation
> the customer. If I search for an exact name which is a "combined" name
> example "Schwander-Widmer"), lucene don't find it. But if I search
> Widmer" without hyphen, lucene find the correct person.
> I can't understand this, because from my point of view it should be the
> search because it's a perfect match. The name field contains only the name
> and if I write it correctly (with or without hyphen) lucene shoud find it
> Thanks for your help !
> Alain

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

View raw message