RE: search a subdirectory (New to Lucene)

2006-02-23 Thread John Hamilton
EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 3:18 PM To: java-user@lucene.apache.org Subject: Re: search a subdirectory (New to Lucene) I presume by saying "subdirectory" you're referring to filesystem directories and you're indexing a directory tree of files. If you

Re: search a subdirectory (New to Lucene)

2006-02-22 Thread Erik Hatcher
I presume by saying "subdirectory" you're referring to filesystem directories and you're indexing a directory tree of files. If you index the path (perhaps relative from the root is best) as a keyword field (untokenized, but indexed) you could perform filtering on a / path/subpath sort of

search a subdirectory (New to Lucene)

2006-02-22 Thread John Hamilton
I'm new to Lucene and was wondering what is the best way to perform a search on a subdirectory or subdirectories within the index? My thought at this point is to build a query to first search for files in the required directory(ies) and then use that query to make a QueryFilter and use that Que