From the javadoc:
Field.UnIndexed: Constructs a String-valued Field that is
not tokenized nor indexed, but is stored
in the index, for return with hits.
Field.Keyword: Constructs a String-valued Field that is
not tokenized, but is indexed and stored.
(note that I haven't tried this in code with file paths, so there may still be analyzer tweaking necessary)
- matt
On Wednesday, October 23, 2002, at 05:47 PM, Rob Outar wrote:
Hi all, I am indexing the filepath with the below:Document doc = new Document(); doc.add(Field.UnIndexed("path", f.getAbsolutePath())); I then try to run the following after building the index: this.query = QueryParser.parse(file.getAbsolutePath(),"path",this.analyzer); Hits hits = this.searcher.search(this.query); It returns zero hits?!? What am I doing wrong? Any help would be appreciated. Thanks, Rob
-- To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:lucene-user-help@;jakarta.apache.org>