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
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
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
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:
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
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