Hi Chris,

That did it! Thanks for the help. I should have read the javadocs for
Field.Index more closely!
Thanks to everyone else for their input too.

--
Joe Attardi
[EMAIL PROTECTED]
http://thinksincode.blogspot.com/

On 7/3/07, Chris Hostetter <[EMAIL PROTECTED]> wrote:


It sounds like your problem is that your id field is analyzed and as a
result contains more then one token per document ... both the
deleteDocument and updateDocument methods that take in a Term only remove
documents that have that exact Term in them.

You need to add your documents with the "id" field as UN_TOKENIZED in the
first place, and then updateDocument and deleteDocument should work (note:
your use of "\"" in building your Term also looks suspicious, like you
expect ther Term text to be analyzed into a phrase .... it's not, it's
literal term text).

: id:"com.mycompany.myapp.FooBar 142"

: Term term = new Term("id", "\"" + doc.get("id") + "\"");




-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to