Re: Remove Docs from Index

2007-01-10 Thread Doron Cohen
Fernando, this code seems okay, in what sense is it "not working well"? One thing to verify is that the "contentPid" field you are deleting by was added to the index with Index.UN_TOKENIZED, otherwise the analyzer in use while indexing might have broken or lower-cased that term (e.g. "contentPid:C

Re: Remove Docs from Index

2007-01-10 Thread Erick Erickson
When you say it isn't working very well, what do you mean? It's slow? It's not removing what you expect? If the latter, I suspect you're tokenizing the term when you index such that it's not being found correctly You need to, somehow, get the Lucene document ID to remove. You can either do a

Remove Docs from Index

2007-01-10 Thread Fernando G Bernardino
Hi People! My app needs to update documents from index, so I have to remove and insert again, all right? First I wrote this code: --- IndexReader reader = null; try { String index = Webp.getProperty("webp.search.indexFolder"); Directory directory = FS