lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Harvey <>
Subject Searching multiple fields in one Index of Documents
Date Tue, 12 Feb 2002 00:39:47 GMT
I have a working installation of Lucene running against indexes created by 
a database query.
Each Document in the Index contains fifteen or twenty fields. I am 
currently searching only one field (that contains concatenated database 
columns) because I cannot figure out how to search multiple fields. So:

How can I use Lucene to search more than one field in an Index of Documents?

field CATEGORY is(or contains) 'bar'
field BODY contains 'foo'


"The trouble with the rat-race is that even if you win you're still a rat."
--Lily Tomlin
Charles Harvey
Wk: 215 789 6057
Cell: 215 588 0851

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

View raw message