You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Doron Cohen (JIRA)" <ji...@apache.org> on 2007/12/20 13:35:44 UTC
[jira] Updated: (LUCENE-1096) Deleting docs of all returned Hits
during search causes ArrayIndexOutOfBoundsException
[ 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org