Re: Field Not Present In Document

2008-12-29 Thread Amin Mohammed-Coleman
Hi Thanks for your reply. It turns out you were correct and I was not loading the correct document. User error! Cheers Amin On 28 Dec 2008, at 19:50, Grant Ingersoll wrote: How do you know that document in question has an id of 1, as in when you do: Document documentFromIndex = index

Re: Re: Re: Field Not Present In Document

2008-12-28 Thread tom
AUTOMATIC REPLY LUX is closed until 5th January 2009 - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org

Re: Re: Field Not Present In Document

2008-12-28 Thread tom
AUTOMATIC REPLY LUX is closed until 5th January 2009 - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org

Re: Field Not Present In Document

2008-12-28 Thread Grant Ingersoll
How do you know that document in question has an id of 1, as in when you do: Document documentFromIndex = indexReader.document(1) I would fire up Luke (http://www.getopt.org/luke) against your index and see what is inside of it. On Dec 26, 2008, at 3:19 PM, Amin Mohammed-Coleman wrote:

Fwd: Field Not Present In Document

2008-12-26 Thread Amin Mohammed-Coleman
Begin forwarded message: From: Amin Mohammed-Coleman Date: 26 December 2008 20:19:02 GMT To: java-user@lucene.apache.org Subject: Field Not Present In Document Hi I have the following situation: Document document = new Document(); String body ="This is a body of doc

Field Not Present In Document

2008-12-26 Thread Amin Mohammed-Coleman
Hi I have the following situation: Document document = new Document(); String body ="This is a body of document"; Field field = new Field("body", body, Field.Store.YES, Field.Index.ANALYZED); document.add(field); String id ="1