lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Attardi" <>
Subject Re: IndexWriter.updateDocument(Term, Document) not removing old Document?
Date Tue, 03 Jul 2007 20:39:04 GMT
Update on my problem.. it looks like I am having the same problem with
deleteDocuments that I am with updateDocument. Not sure why it's not
working, though. I'm using the StandardAnalyzer, as I mentioned. Are there
any other things that I might want to check that would keep this from


Joe Attardi

On 7/3/07, Joe Attardi <> wrote:
> Hi Erick,
> I'm guessing that your problem is what gets indexed. What analyzer
> > are you using when indexing? One that breaks words apart on, say,
> > periods?
> I am using the StandardAnalyzer. When I do a test query using Luke, it
> returns the object I'm looking for. The query I use is:
> id:"com.mycompany.myapp.FooBar 142"
> and it returns my FooBar document with id 142.
> > What is your evidence that the doc still exists? Have you
> > closed/reopened
> > your reader before you check this? Remember that index changes aren't
> > visible for an already-opened reader.
> I am creating a new IndexSearcher object every time I do a search.
> But also, when I run the same query again in Luke after I do the update,
> after reloading the index in Luke, it returns both objects.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message