lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eloi Rocha Neto" <eloi.ro...@gmail.com>
Subject How to make a case insensitive search using a FuzzyQuery?
Date Fri, 06 Jul 2007 01:39:00 GMT
Hi,

   Anyone knows how to make a case insensitive search using a FuzzyQuery?

   I want that the results coming from "PP-Trip SubAlcance Seq Negativa",
"pp-trip subAlcance seq negativa" and "PP-TRIP SUBALCANCE SEQ NEGATIVA" be
the same. The field must be indexed by "PP-Trip SubAlcance Seq Negativa".

   My code:
      Query query = new FuzzyQuery( new Term( field, input ) , similarity );
      Hits hits = indexSearcher.search(query);

  I really appreciate any help!

  Thanks in advance,

Eloi

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message