Re: Ask for a better solution for the case

2006-04-28 Thread Doug Cutting
hu andy wrote: Hi, I hava an application that need mark the retrieved documents which have been read. So the next time I needn't read the marked documents again. You could mark the documents as deleted, then later clear deletions. So long as you don't close the IndexReader, the deletions wil

Re: Ask for a better solution for the case

2006-04-28 Thread Erick Erickson
This one's fairly wild, I'm interested to see what the gurus think... You could create a bitset and mark each document retrieved by the appropriate bit position (using the Lucene document id). Persist this bitset (assuming you need it across sessions). Be careful, I wouldn't persist it via the to

Ask for a better solution for the case

2006-04-28 Thread hu andy
Hi, I hava an application that need mark the retrieved documents which have been read. So the next time I needn't read the marked documents again. I have an idea that adding a particular field into the indexed document. But as lucene have no update method, I have to delete that document, and