File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Search using LUCENE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Search using LUCENE" Watch "Search using LUCENE" New topic

Search using LUCENE

Sriram Akula

Joined: Mar 21, 2009
Posts: 7
I am using query parser. But the filed values on which we are searching is are being converted to lower case.

Is there any method to make it case sensitive?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39548
That kind of thing is controlled by an Analyzer. If you don't specify one during indexing or searching, then a org.apache.lucene.analysis.standard.StandardAnalyzer will be used that applies a LowerCaseFilter, amongst other steps. If that's not what you want, then you need to supply your own Analyzer implementation.

Ping & DNS - updated with new look and Ping home screen widget
wood burning stoves
subject: Search using LUCENE
Similar Threads
how to get result of requet.getAttribute() from jsp?
About generic Question
what is wrong with this code ?
Onchange Attribute in TLD
Threads and synchronisation