I added this test method locally to TestASCIIFoldingFilter.java in the
Lucene/Solr 3.1.0 source tree, and it passed, so the filter is not the problem
(and the Solr factory certainly isn't either - it's just a wrapper) - I second
Ludovic's question - you must have other filters configured:
public void testPluralNotTrimmed() throws Exception {
TokenStream stream = new WhitespaceTokenizer(TEST_VERSION_CURRENT, new
StringReader
("después Imágenes"));
ASCIIFoldingFilter filter = new ASCIIFoldingFilter(stream);
CharTermAttribute termAtt = filter.getAttribute(CharTermAttribute.class);
assertTermEquals("despues", filter, termAtt);
assertTermEquals("Imagenes", filter, termAtt);
}
Steve
> -----Original Message-----
> From: lboutros [mailto:[email protected]]
> Sent: Tuesday, April 05, 2011 12:18 PM
> To: [email protected]
> Subject: Re: question on solr.ASCIIFoldingFilterFactory
>
> Is there any Stemming configured in for this field in your schema
> configuration file ?
>
> Ludovic.
>
> 2011/4/5 Nemani, Raj [via Lucene] <
> [email protected]>
>
> > All,
> >
> > I am using solr.ASCIIFoldingFilterFactory to perform accent insensitive
> > search. One of the words that got indexed as part my indexing process
> is
> > "después". Having used the ASCIIFoldingFilterFactory,I expected that If
> I
> > searched for word "despues" I should have the document containing the
> word
> > "después" show up in the results but that was not the case. Then I used
> the
> > Analysis.jsp to analyze "después" and noticed that the
> > ASCIIFoldingFilterFactory folded "después" as "despue".
> >
> >
> >
> > If I repeat the above exercise for the word "Imágenes", then
> Analysis.jsp
> > tell me that the ASCIIFoldingFilterFactory folded "Imágenes" as
> "imagen".
> > But I can search for "Imagenes" and get the correct results.
> >
> >
> >
> > I am not familiar with Spanish but I found the above behavior confusing.
> > Can anybody please explain the behavior described above?
> >
> >
> >
> > Thank a million in advance
> >
> > Raj
> >
> >
> >
> >
> >
> > ------------------------------
> > If you reply to this email, your message will be added to the
> discussion
> > below:
> >
> > http://lucene.472066.n3.nabble.com/question-on-solr-
> ASCIIFoldingFilterFactory-tp2780463p2780463.html
> > To start a new topic under Solr - User, email
> > [email protected]
> > To unsubscribe from Solr - User, click
> here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=uns
> ubscribe_by_code&node=472068&code=Ym91dHJvc2xAZ21haWwuY29tfDQ3MjA2OHw0Mzk2
> MDUxNjE=>.
> >
> >
>
>
> -----
> Jouve
> France.
> --
> View this message in context: http://lucene.472066.n3.nabble.com/question-
> on-solr-ASCIIFoldingFilterFactory-tp2780463p2780509.html
> Sent from the Solr - User mailing list archive at Nabble.com.