lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Kor" <dave....@nexusedge.com>
Subject RE: Recommended way of performing multi-field searches
Date Mon, 12 Nov 2001 10:23:40 GMT
> This is a repost of a question posted to jGuru Lucene Forum.
> Didn't get a response there so I'm trying my luck here...
>
> What's the recommended way of performing multi-field searches?
>
>   a.. Programmatically adding a :[field] for each field to the
> query and parsing this query?


Just use the query parser, you can specify field specific searches using the
format field:text.
Eg, "title:cat author:james"

Dave Kor Kian Wei
Consultant
Product Engineering
NexusEdge Technologies Pte. Ltd.
6 Aljunied Ave 3, #01-02 (Level 4)
Singapore 389932
Tel : (+65)848-2552
Fax : (+65)747-4536
Web : www.nexusedge.com



--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message