On Aug 22, 2010, at 1:47 PM, Erick Erickson wrote: > Did you issue a commit (or close) the IndexWriter after you deleted the > documents?
I originally wrote: > I create/close a new IndexWriter for the delete. So the answer is "yes." > ... are you sure your cases match when you submit your term queries? Yes. > An interesting test would be to write out the file names you create your > terms from, and see what happens if you search on those fields etc.... Never mind. I figured it out. (Don't you hate it when you can't figure something out, you write-up a detailed question, post it, then go off an figure it out afterwards?) The problem was the directory was being stored in the index like: /path/to/file/ (with the trailing slash). The delete query, however, didn't have the trailing slash since File.getAbsolutePath() doesn't return trailing file separator characters. D'oh! - Paul --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org