I believe in lucene at least deleting documents only marks them for deletion. The actual delete happens only after closing the IndexReader. Not sure about Solr

Ajanta.

James liu wrote:

but index file size not changed and maxDoc not changed.
>


2007/5/10, Nick Jenkin <[EMAIL PROTECTED]>:

Hi James,
As I understand it numDocs is the number of documents in your index,
maxDoc is the most documents you have ever had in your index.

You currently have no documents in your index by the looks, thus your
delete query must of deleted everything. That would be why you are
getting no results.

-Nick

On 5/10/07, James liu <[EMAIL PROTECTED]> wrote:
> i use command like this
>
> > curl http://localhost:8983/solr/update --data-binary
'<delete><query>name:DDR</query></delete>'
> > curl http://localhost:8983/solr/update --data-binary '<commit/>'
> >
> >
> and i get
>
> > numDocs : 0
> > maxDoc : 1218819
> >
>
> when i search something which exists in before delete and find nothing.
>
> but index file size not changed and maxDoc not changed.
>
> why it happen?
>
>
> --
> regards
> jl
>


--
- Nick




Reply via email to