Question Details

Browse

Deleting from Lucene index

By Peg Ritchey - Jul. 09, 2008

Our web app uses Sybase. We add documents to the database using the URL, a unique product id is assigned and Lucene indexes the document as it should. However, when removing something from the database using the product id, Lucene does not remove it from its index and the product still shows up on the page. At rest, the file directory shows the delete, segments and the .cfs files. Is there a command line script/instruction that can be run so that Lucene can re-index the database and remove the items that have been deleted?




Answers

Add Answer
  1. By Bipin Shah on Jul. 09, 2008

    Try Luke (http://www.getopt.org/luke/) - it allows you to selectively delete documents from the index


    1 Votes
  2. By an anonymous user on Jul. 10, 2008

    You should not have to re-index to pick up your changes. Full indexing should be done rarely, since it is a resource-intensive operation. A re-index, depending on how you do it, might also not delete the existing records that are no longer in the index. The best operation, it sounds like, is to trigger a document delete upon a record delete in the db. Luke, as mentioned above, also gives you a CLI to do this manually.


    1 Votes
Share your knowledge

Related Questions

Browse Get answers and share your expertise.

Related Software

Browse