lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven A Rowe <sar...@syr.edu>
Subject RE: How to search in metadata? (filename, document title, cocument creator, ...)
Date Mon, 20 Oct 2008 16:50:03 GMT
On 10/20/2008 at 12:41 PM, mil84 wrote:
> doc.add(new Field("Title", "hohoho", Field.Store.YES, Field.Index.TOKENIZED));
[...]
> 3) Searching in title - it DON'T WORK (I try to find hohoho, and nothing).
[...]
> QueryParser parser = new QueryParser("title", new StandardAnalyzer());

Field names are case-sensitive: "Title" != "title".

Steve

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


Mime
View raw message