You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Digy (JIRA)" <ji...@apache.org> on 2007/08/14 02:03:30 UTC
[jira] Created: (LUCENENET-60) "IndexModifier.DocCount" does not
always give the correct result.
"IndexModifier.DocCount" does not always give the correct result.
-----------------------------------------------------------------
Key: LUCENENET-60
URL: https://issues.apache.org/jira/browse/LUCENENET-60
Project: Lucene.Net
Issue Type: Bug
Reporter: Digy
Priority: Minor
to pass the nunit-test for IndexModifier, "DocCount" method should be changed as below. (indexWriter does not give the correct result. So use the indexReader).
public virtual int DocCount()
{
lock (directory)
{
AssureOpen();
CreateIndexReader();
return indexReader.NumDocs();
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (LUCENENET-60) "IndexModifier.DocCount" does not
always give the correct result.
Posted by "George Aroush (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Aroush closed LUCENENET-60.
----------------------------------
Resolution: Invalid
Assignee: George Aroush
This patch is a work around the real issue; thus, I will not apply it to give a chance for the real issue to be debugged.
> "IndexModifier.DocCount" does not always give the correct result.
> -----------------------------------------------------------------
>
> Key: LUCENENET-60
> URL: https://issues.apache.org/jira/browse/LUCENENET-60
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Digy
> Assignee: George Aroush
> Priority: Minor
> Attachments: IndexModifier.patch
>
>
> to pass the nunit-test for IndexModifier, "DocCount" method should be changed as below. (indexWriter does not give the correct result. So use the indexReader).
> public virtual int DocCount()
> {
> lock (directory)
> {
> AssureOpen();
> CreateIndexReader();
> return indexReader.NumDocs();
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (LUCENENET-60) "IndexModifier.DocCount" does not
always give the correct result.
Posted by "George Aroush (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520365 ]
George Aroush commented on LUCENENET-60:
----------------------------------------
Hi Digy,
The existing logic for IndexModifier.DocCount() is consistent with the Java version. Changing it the way you are suggestion with the patch will change that logic. So, I'm not sure about this patch as I believe there is a defect somewhere else which hasn't been found yet.
Regards,
-- George
> "IndexModifier.DocCount" does not always give the correct result.
> -----------------------------------------------------------------
>
> Key: LUCENENET-60
> URL: https://issues.apache.org/jira/browse/LUCENENET-60
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Digy
> Priority: Minor
> Attachments: IndexModifier.patch
>
>
> to pass the nunit-test for IndexModifier, "DocCount" method should be changed as below. (indexWriter does not give the correct result. So use the indexReader).
> public virtual int DocCount()
> {
> lock (directory)
> {
> AssureOpen();
> CreateIndexReader();
> return indexReader.NumDocs();
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (LUCENENET-60) "IndexModifier.DocCount" does not
always give the correct result.
Posted by "Digy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520382 ]
Digy commented on LUCENENET-60:
-------------------------------
Hi George,
Yes, you are right, but till the bug is found this patch can be used to get the correct DocCount.
DIGY
> "IndexModifier.DocCount" does not always give the correct result.
> -----------------------------------------------------------------
>
> Key: LUCENENET-60
> URL: https://issues.apache.org/jira/browse/LUCENENET-60
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Digy
> Priority: Minor
> Attachments: IndexModifier.patch
>
>
> to pass the nunit-test for IndexModifier, "DocCount" method should be changed as below. (indexWriter does not give the correct result. So use the indexReader).
> public virtual int DocCount()
> {
> lock (directory)
> {
> AssureOpen();
> CreateIndexReader();
> return indexReader.NumDocs();
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (LUCENENET-60) "IndexModifier.DocCount" does not
always give the correct result.
Posted by "Digy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Digy updated LUCENENET-60:
--------------------------
Attachment: IndexModifier.patch
> "IndexModifier.DocCount" does not always give the correct result.
> -----------------------------------------------------------------
>
> Key: LUCENENET-60
> URL: https://issues.apache.org/jira/browse/LUCENENET-60
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Digy
> Priority: Minor
> Attachments: IndexModifier.patch
>
>
> to pass the nunit-test for IndexModifier, "DocCount" method should be changed as below. (indexWriter does not give the correct result. So use the indexReader).
> public virtual int DocCount()
> {
> lock (directory)
> {
> AssureOpen();
> CreateIndexReader();
> return indexReader.NumDocs();
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.