RE: Result of query not what I expect

2009-12-29 Thread Uwe Schindler
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

Re: Result of query not what I expect

2009-12-29 Thread Ian Lea
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

Result of query not what I expect

2009-12-29 Thread lucene-newbie123
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. -