java-user@lucene.apache.org
Subject: Document not searchable after IndexWrite.updateDocument
Hi,
I wrote a simple code to update a lucene document with new values.
Code Snippet:
Term term = new Term("PRODUCT_CODE", productCode);
TermQuery query = new TermQuery(term);
Sanket Paranjape [mailto:sanket.paranjape.mailingl...@gmail.com]
> Sent: Wednesday, September 18, 2013 2:51 PM
> To: java-user@lucene.apache.org
> Subject: Document not searchable after IndexWrite.updateDocument
>
> Hi,
>
> I wrote a simple code to update a lucene document with new values.
>
Hi,
I wrote a simple code to update a lucene document with new values.
Code Snippet:
Term term = new Term("PRODUCT_CODE", productCode);
TermQuery query = new TermQuery(term);
TopDocs productDoc = this.searcher.search(query, 1);
int docNum = scoreDoc.doc;
Document doc = searcher.