Re: Search within multiple different subfolders

2006-06-22 Thread Erick Erickson
Perhaps for privacy reasons? that only specific users should be able to search the whole index. Is there a best practice approach to realize this? Good point. But I still think you could get the same effect with less complexity by including a "source" tag (to extend the example) and munging

Re: Search within multiple different subfolders

2006-06-22 Thread Martin Braun
hi, > > I'm hardly the lucene expert, but I don't think you can search just a > portion of the index. But that's effectively what you're doing if you > restrict the search to "son and.". I think there is also the possibility to write a custom search filter (org.apache.lucene.search.Filter), an

Re: Search within multiple different subfolders

2006-06-21 Thread Erick Erickson
Shagheyegh: I'm hardly the lucene expert, but I don't think you can search just a portion of the index. But that's effectively what you're doing if you restrict the search to "son and.". However, depending on your problem space, you could build separate indexes. To continue the example, you

Re: Search within multiple different subfolders

2006-06-20 Thread Shaghayegh Sahebie
Thank you Erick, You are right! Lucene searches the Index not directories, but in this way we search the whole index and just add a new constraint(e.g. files path) to match proper results. Is there a way to not to search the whole index and just some branches of an index without using constraint

Re: Search within multiple different subfolders

2006-06-20 Thread Erick Erickson
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 files. If I'm interpreting your problem correctly, you'll have to build an inde

Search within multiple different subfolders

2006-06-20 Thread Shaghayegh Sahebie
Hi all, I'm a new user of Lucene and wanted to know if Lucne can search multiple data directories which these directories do not have similar parent? e.g. I have a directory named "father" and i have a subDirectory called "son" and i have another directory called "mother" with a subDirectory cal