tags:

views:

49

answers:

1

how to do incremental indexing in Lucene.Net ?

A: 

Delete the documents that are updated and re-add them as new documents

Woody
i have not given a particular id to document i want to search document by query....
Deepak
how can i delete the particular documents?
Deepak
You need to use an indexReader to go to the document and then use Delete. You need to either use an id to find it or iterate through all the documents until you get to the one you want.
Woody
through iterating it will take too much time.......bcos that collection is very large.. do u have Any another option...
Deepak
Yes, put an id in each document and search by id
Woody