Re: Fields with Field.Store.NO and Field.Index.ANALYZED not being indexed

2010-08-29 Thread Constantine Vetoshev
Thanks Erick. I finally had time to go back and look at this problem. I discovered that the analyzed fields work fine for searching until I use IndexWriter.updateDocument(). The way my application runs, it has to update documents several times to update one specific field. The update code queries

RE: Fields with Field.Store.NO and Field.Index.ANALYZED not being indexed

2010-08-29 Thread Uwe Schindler
You cannot retrieve non-stored fields. They are analyzed and tokenized during indexing and this is a one-way transformation. If you update documents you have to reindex the contents. If you do not have access to the original contents anymore, you may consider adding a stored-only "raw document" fie

Re: Fields with Field.Store.NO and Field.Index.ANALYZED not being indexed

2010-08-29 Thread Erick Erickson
Adding to Uwe's comment, you may be operating under a false assumption. Lucene has no capability to update fields in a document. Period. This is one of the most frequently requested changes, but the nature of an inverted index makes this...er...tricky. Updates are really a document delete followed

Re: Fields with Field.Store.NO and Field.Index.ANALYZED not being indexed

2010-08-29 Thread Constantine Vetoshev
"Uwe Schindler" writes: > You cannot retrieve non-stored fields. They are analyzed and tokenized > during indexing and this is a one-way transformation. If you update > documents you have to reindex the contents. If you do not have access to the > original contents anymore, you may consider adding