lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: Search within multiple different subfolders
Date Tue, 20 Jun 2006 12:51:29 GMT
I'm a little confused. What does a directory have to do with searching? You
can certainly build the *index* from files in a directory, but Lucene
doesn't search files themselves, it searches the *index* built from the

If I'm interpreting your problem correctly, you'll have to build an index,
perhaps putting some designator in each document about where it came from.
Crudely, you could just store the file path that the file was indexed from,
or even just some designation. For instance, a field "origin", with values
"mother", "father", "son", "daughter". Then your search could restrict
itself to documents with the "origin" field however you choose.

Hope that helps

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message