o: java-user@lucene.apache.org
> Subject: Re: Result of query not what I expect
>
> Hi
>
>
> You need to move the Document doc = new Document(); line to inside
> your for loop. The code as it stands is adding data to a single
> document instance that is being added to
ound)");
> hits = searcher.search(query, 50);
>
> Document docx = searcher.doc(hits.scoreDocs[0].doc);
> //test to see what
> first hit is
> String doctitle = docx.get("note");
> System
ut.println("Here is the note: " + doctitle);
--
View this message in context:
http://old.nabble.com/Result-of-query-not-what-I-expect-tp26958815p26958815.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-