Re: Query Search returns always the same id

2008-10-29 Thread Erick Erickson
ot;found: " + hits.length() + " >> documents."); >>for (int i = 0; i < hits.length(); i++) { >> System.out.println((i + 1) + ". " + >> hits.doc(i).get("id") + >> hits.doc(i).

Re: Query Search returns always the same id

2008-10-28 Thread Sebastian Müller
sendet: Dienstag, 28. Oktober 2008 23:29:18 GMT +01:00 Amsterdam/Berlin/Bern/Rom/Stockholm/Wien Betreff: Re: Query Search returns always the same id Sebastian Müller wrote: > Hi Erick > > thank you for you fast reply. the problem with the ID and the wrong > results is solved. that

Re: Query Search returns always the same id

2008-10-28 Thread Daniel Noll
Sebastian Müller wrote: Hi Erick thank you for you fast reply. the problem with the ID and the wrong results is solved. that was kinda noob failure of me ;) but the message is still null. but i think somehow i can fix that ;) You had passed Field.Store.NO for the message, so it isn't particul

Re: Query Search returns always the same id

2008-10-28 Thread Sebastian Müller
AIL PROTECTED]> An: java-user@lucene.apache.org Gesendet: Dienstag, 28. Oktober 2008 21:52:51 GMT +01:00 Amsterdam/Berlin/Bern/Rom/Stockholm/Wien Betreff: Re: Query Search returns always the same id I think your root problem is that you're using the same Document over and over to add to

Re: Query Search returns always the same id

2008-10-28 Thread Erick Erickson
; >} >} else { >System.out.println("No matching documents found."); >} >} > [/code] > > my problem is, that the query always returns a lot of too much results. > and > the

Query Search returns always the same id

2008-10-28 Thread Sebastian23
lways for every result in the list the same id, namly the first i added to the writer. and the message is always null. while adding i check with sysout that all the ids are different and the messages arent null whats going wrong?? thx for your hints -- View this message in context: http://www.n