You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by Max Metral <ma...@artsalliancelabs.com> on 2007/04/12 04:49:39 UTC

strange DeleteDocuments behavior

I have an index that has multiple documents with a  given term.  I call
DeleteDocuments(new Term("FieldName", value)), but it seems to only
delete one document.  Is this by design?  A bug?

 

I add the field to the document like so:

       d.Add(new Field("FieldName", value, Field.Store.YES,
Field.Index.UN_TOKENIZED));

 

--Max


RE: strange DeleteDocuments behavior

Posted by Max Metral <ma...@artsalliancelabs.com>.
It's an integer (.ToString()) that identifies the "group" that the doc
is in. I'm trying to delete the whole group.

-----Original Message-----
From: Michael Garski [mailto:mgarski@mac.com] 
Sent: Wednesday, April 11, 2007 10:55 PM
To: lucene-net-dev@incubator.apache.org
Subject: Re: strange DeleteDocuments behavior

It looks like you are not tokenizing the field when it is indexed,  
which could be the issue with the delete.

What is the value of the variable 'value'?

Michael

On Apr 11, 2007, at 7:49 PM, Max Metral wrote:

> I have an index that has multiple documents with a  given term.  I  
> call
> DeleteDocuments(new Term("FieldName", value)), but it seems to only
> delete one document.  Is this by design?  A bug?
>
>
>
> I add the field to the document like so:
>
>        d.Add(new Field("FieldName", value, Field.Store.YES,
> Field.Index.UN_TOKENIZED));
>
>
>
> --Max
>


Re: strange DeleteDocuments behavior

Posted by Michael Garski <mg...@mac.com>.
It looks like you are not tokenizing the field when it is indexed,  
which could be the issue with the delete.

What is the value of the variable 'value'?

Michael

On Apr 11, 2007, at 7:49 PM, Max Metral wrote:

> I have an index that has multiple documents with a  given term.  I  
> call
> DeleteDocuments(new Term("FieldName", value)), but it seems to only
> delete one document.  Is this by design?  A bug?
>
>
>
> I add the field to the document like so:
>
>        d.Add(new Field("FieldName", value, Field.Store.YES,
> Field.Index.UN_TOKENIZED));
>
>
>
> --Max
>