lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitrii PapaGeorgio <te...@woh.rr.com>
Subject index and search question
Date Mon, 16 Aug 2004 13:23:18 GMT
Ok so when I index a file such as below

Document doc = new Document();
doc.Add(Field.Text("contents", new StreamReader(dataDir)));
doc.Add(Field.Keyword("filename", dataDir));

I can do a search as this
"+contents:SomeWord  +filename:SomePath"

Correct?

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message