[ 
https://issues.apache.org/jira/browse/LUCENE-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doron Cohen updated LUCENE-1096:
--------------------------------

    Attachment: TestSearchDelete.java

Test failing with this bug.

> Deleting docs of all returned Hits during search causes 
> ArrayIndexOutOfBoundsException
> --------------------------------------------------------------------------------------
>
>                 Key: LUCENE-1096
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1096
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.1
>         Environment: WindowsXPSP1/Lenovo-T60p
>            Reporter: Tushar B
>            Assignee: Doron Cohen
>            Priority: Minor
>         Attachments: TestSearchDelete.java
>
>
> For background user discussion:
> http://www.nabble.com/document-deletion-problem-to14414351.html
> {code}
> Hits h = m_indexSearcher.search(q); // Returns 11475 documents 
> for(int i = 0; i < h.length(); i++) 
> { 
>   int doc = h.id(i); 
>   m_indexSearcher.getIndexReader().deleteDocument(doc);  <-- causes 
> ArrayIndexOutOfBoundsException when i = 6400
> } 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to