lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shakti_Sareen" <>
Subject urgent
Date Sat, 17 Nov 2007 12:46:12 GMT


I am facing problem in searching the word containing forward slash (/).

My index file contains more then one documents. 

On searching for the word "U/S" in the claims field I am getting hits.

But the word "U/S" is actually not there in the document.


Below is the code I am using for searching.

Analyzer analyzer = null;

                                analyzer = new StandardAnalyzer();

                                IndexSearcher searcher = new

                                QueryParser parser = new

                                Query query = parser.parse("U/S");

                                Hits hits =;

                      "Hits of word U/S in claims
::::::::  " + hits.length());

                                for (int i = 0; i < hits.length(); i++)

                                                docum = hits.doc(i);

                                      "file NUMBER
>>>>   " + docum.get("PatentNumber"));




This email (including any attachments) is intended for the sole use of the intended recipient/s
and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review
or reliance by others or copying or distribution or forwarding of any or all of the contents
in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard is appreciated.

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

View raw message