[
https://issues.apache.org/jira/browse/LUCENE-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doron Cohen updated LUCENE-1096:
--------------------------------
Description:
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}
was:
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
}
Priority: Minor (was: Major)
Summary: Deleting docs of all returned Hits during search causes
ArrayIndexOutOfBoundsException (was: Deletion from index causes
ArrayIndexOutOfBoundsException)
refine summary and beautify description.
> 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
>
> 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]