FAQ
Hi

The problem which i am facing is that the query is Case Sensitive

If i type in BIG letters i am not able to see answers and if i type in
small letters i am able to see results

Is there anything by which i can do a case conversion

Now i am using a WhiteSpaceAnalyser . What Analyser should change it to ?


Rgds
Prabhu

Search Discussions

  • Nadav Har'El at Mar 15, 2006 at 8:24 am

    "Raghavendra Prabhu" <rrprabhu@gmail.com> wrote on 15/03/2006 08:37:25 AM:
    Hi

    The problem which i am facing is that the query is Case Sensitive

    If i type in BIG letters i am not able to see answers and if i type in
    small letters i am able to see results

    Is there anything by which i can do a case conversion

    Now i am using a WhiteSpaceAnalyser . What Analyser should change it to ?
    Indeed, WhiteSpaceAnalyzer only breaks up the text on white space, doing
    nothing about the case. You should probably StandardAnalyzer which in
    addition to breaking up the text on white spaces, also breaks it up in
    other logical places (like punctuation, but not in every case), and
    more importantly for you, it indexes the text in lowercase.
    You should use StandardAnalyzer both during indexing, and during query,
    for this to work.

    --
    Nadav Har'El.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedMar 15, '06 at 6:37a
activeMar 15, '06 at 8:24a
posts2
users2
websitelucene.apache.org

People

Translate

site design / logo © 2022 Grokbase