Re: Document not searchable after IndexWrite.updateDocument

2013-09-18 Thread Sanket Paranjape
Hi Uwe, Thanks for explaining. Earlier our system was using 2.4 version and in that this was possible. Anyways, I will implement it correctly as you suggested. On 18-09-2013 07:41 PM, Uwe Schindler wrote: Hi, the problem is that a document retrieved by IndexReader.document() only contains st

RE: Document not searchable after IndexWrite.updateDocument

2013-09-18 Thread Uwe Schindler
Hi, the problem is that a document retrieved by IndexReader.document() only contains stored fields and no indexed fields (they rae no longer accessible from the index). Also, the field types only contain "stored" as attribute, so when reindexing with IndexWriter you just create a document with