lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: how to search string with words
Date Mon, 20 Nov 2006 15:59:38 GMT
>From a reply by Martin:


Please refer to  the answers to my question on this list:
http://www.nabble.com/forum/ViewPost.jtp?post=7337585&framed=y

Shortly spoken: SpanFirstQuery works like a charm :)

hth,


On 11/20/06, spinergywmy <spinergywmy@gmail.com> wrote:
>
>
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message