Re: duplicate fields

2006-09-11 Thread Erick Erickson
I'm not at all sure what you're asking. I believe you can use a TermEnum with an empty term ("") to get all the terms in a particular field. If you're asking "how can I find all the fields in a document", well, that's tricky. Since there's no requirement that every document have the same fields,

Re: duplicate fields

2006-09-10 Thread Daniel Noll
jacky wrote: hi Daniel, How do you use a separate database to check the duplicate fields? It is interesting! It's simple enough. Every time we're about to process a new item we look in the database to see if there is already an item with the same ID. If there isn't, we add the row. If

Re: duplicate fields

2006-09-08 Thread jacky
hi Daniel, How do you use a separate database to check the duplicate fields? It is interesting! Best Regards. jacky - Original Message - From: "Daniel Noll" <[EMAIL PROTECTED]> To: Sent: Friday, September 08, 2006 3:08 PM Subject: Re:

Re: duplicate fields

2006-09-08 Thread Daniel Noll
jacky wrote: hi, 1. Is there an effect method to check if there exists the same field(hold a unique ID) when added into lucene index database? Make a search for this field? One way is to create an IndexReader and IndexSearcher on your index, which you reopen every now and then. But we do thi