lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spinergywmy <spinergy...@gmail.com>
Subject how to search string with words
Date Mon, 20 Nov 2006 11:31:33 GMT

Hi,

   I wonder how I can perform search on string of words within PDF file
contents, for instance,

      I type "third party license" in the search text box, I'm using
QueryParser:

           String searchString = request.getParameter("txtSearch");

           QueryParser parser = new QueryParser("contents", analyzer);

           Query query = parser.parse(searchString);

      From the system.out.println(), I noticed that the query has been
broken like below:

           contents:third contents:party contents:license

      So, I m wondering how can I make the query becomes contents:third
party license? And make the searching more accurate.

   Thanks.

regards,
Wooi Meng
-- 
View this message in context: http://www.nabble.com/how-to-search-string-with-words-tf2668490.html#a7440978
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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


Mime
View raw message