Re: Update document with fields which are not stored

2008-05-15 Thread Jean-Claude Antonio
Thanks Karl. My apologies for the duplicate mail sent. >>Is Lucene your primary data store? Almost, as most properties of my items can be queried. I would like to be able to "not" store these fields though, but the fact that I need to update my documents (delete + create), forces me to store th

Update document with fields which are not stored

2008-05-15 Thread Jean-Claude Antonio
Hello, We are using lucene for a while, and we are happy with it. Now we want to optimize some space. We are parsing versions of files and we want to keep track of history and also know which one is the newest we set a flag to it (field newest=true). so when a new version comes along : - we w

Re: Update document with fields which are not stored

2008-05-15 Thread Karl Wettin
15 maj 2008 kl. 19.15 skrev Jean-Claude Antonio: This work perfectly, but for this we need to have a content field as new Field("content", content, Field.Store.YES, Field.Index.TOKENIZED) to be able to update the current document which stores the content. We wish not to store the content as the

Update document with fields which are not stored

2008-05-15 Thread Jean-Claude Antonio
Hello, We are using lucene for a while, and we are happy with it. Now we want to optimize some space. We are parsing versions of files and we want to keep track of history and also know which one is the newest we set a flag to it (field newest=true). so when a new version comes along : - we w