You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Piotr Dobrowolski (JIRA)" <ji...@apache.org> on 2006/08/05 17:17:16 UTC
[jira] Created: (LUCENENET-13) Multisearcher one word query bug
Multisearcher one word query bug
--------------------------------
Key: LUCENENET-13
URL: http://issues.apache.org/jira/browse/LUCENENET-13
Project: Lucene.Net
Issue Type: Bug
Reporter: Piotr Dobrowolski
When I use multisearcher method Search(query, filter,maxResults) with one word query it throws an exception.
I think that this code is responsible for it:
if (splittable)
{
for (int j = 0; j < clauses.Length; j++)
{
Query tmp = clauses[j].GetQuery();
uniques.Add(tmp, tmp);
}
}
I think it shoul look more like this:
if (splittable)
{
for (int j = 0; j < clauses.Length; j++)
{
Query tmp = clauses[j].GetQuery();
if(uniques.Contains(tmp) == false)
uniques.Add(tmp, tmp);
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (LUCENENET-13) Multisearcher one word query bug
Posted by "Ivan Gu?vinec (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/LUCENENET-13?page=all ]
Ivan Gu?vinec updated LUCENENET-13:
-----------------------------------
Attachment: MultiSearcher.Query.diff
I had to fix this issue also. While I was at it, I also included the changes to MultiSearcher.CreateWeight() method as noted in LUCENENET-12.
Attached "MultiSearcher.Query.diff" is a diff/patch created using SVN on Trunk revision 431853.
> Multisearcher one word query bug
> --------------------------------
>
> Key: LUCENENET-13
> URL: http://issues.apache.org/jira/browse/LUCENENET-13
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Piotr Dobrowolski
> Attachments: MultiSearcher.Query.diff
>
>
> When I use multisearcher method Search(query, filter,maxResults) with one word query it throws an exception.
> I think that this code is responsible for it:
> if (splittable)
> {
> for (int j = 0; j < clauses.Length; j++)
> {
> Query tmp = clauses[j].GetQuery();
> uniques.Add(tmp, tmp);
> }
> }
> I think it shoul look more like this:
> if (splittable)
> {
> for (int j = 0; j < clauses.Length; j++)
> {
> Query tmp = clauses[j].GetQuery();
> if(uniques.Contains(tmp) == false)
> uniques.Add(tmp, tmp);
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (LUCENENET-13) Multisearcher one word query bug
Posted by "George Aroush (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/LUCENENET-13?page=all ]
George Aroush reassigned LUCENENET-13:
--------------------------------------
Assignee: George Aroush
> Multisearcher one word query bug
> --------------------------------
>
> Key: LUCENENET-13
> URL: http://issues.apache.org/jira/browse/LUCENENET-13
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Piotr Dobrowolski
> Assigned To: George Aroush
> Attachments: MultiSearcher.Query.diff
>
>
> When I use multisearcher method Search(query, filter,maxResults) with one word query it throws an exception.
> I think that this code is responsible for it:
> if (splittable)
> {
> for (int j = 0; j < clauses.Length; j++)
> {
> Query tmp = clauses[j].GetQuery();
> uniques.Add(tmp, tmp);
> }
> }
> I think it shoul look more like this:
> if (splittable)
> {
> for (int j = 0; j < clauses.Length; j++)
> {
> Query tmp = clauses[j].GetQuery();
> if(uniques.Contains(tmp) == false)
> uniques.Add(tmp, tmp);
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (LUCENENET-13) Multisearcher one word query bug
Posted by "George Aroush (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/LUCENENET-13?page=all ]
George Aroush resolved LUCENENET-13.
------------------------------------
Resolution: Fixed
Fixed in Lucene.Net 1.9, 1.9.1 and 2.0
> Multisearcher one word query bug
> --------------------------------
>
> Key: LUCENENET-13
> URL: http://issues.apache.org/jira/browse/LUCENENET-13
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Piotr Dobrowolski
> Assigned To: George Aroush
> Attachments: MultiSearcher.Query.diff
>
>
> When I use multisearcher method Search(query, filter,maxResults) with one word query it throws an exception.
> I think that this code is responsible for it:
> if (splittable)
> {
> for (int j = 0; j < clauses.Length; j++)
> {
> Query tmp = clauses[j].GetQuery();
> uniques.Add(tmp, tmp);
> }
> }
> I think it shoul look more like this:
> if (splittable)
> {
> for (int j = 0; j < clauses.Length; j++)
> {
> Query tmp = clauses[j].GetQuery();
> if(uniques.Contains(tmp) == false)
> uniques.Add(tmp, tmp);
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (LUCENENET-13) Multisearcher one word query bug
Posted by "George Aroush (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/LUCENENET-13?page=all ]
George Aroush closed LUCENENET-13.
----------------------------------
Fixed in Lucene.Net 1.9, 1.9.1 and 2.0
> Multisearcher one word query bug
> --------------------------------
>
> Key: LUCENENET-13
> URL: http://issues.apache.org/jira/browse/LUCENENET-13
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Piotr Dobrowolski
> Assigned To: George Aroush
> Attachments: MultiSearcher.Query.diff
>
>
> When I use multisearcher method Search(query, filter,maxResults) with one word query it throws an exception.
> I think that this code is responsible for it:
> if (splittable)
> {
> for (int j = 0; j < clauses.Length; j++)
> {
> Query tmp = clauses[j].GetQuery();
> uniques.Add(tmp, tmp);
> }
> }
> I think it shoul look more like this:
> if (splittable)
> {
> for (int j = 0; j < clauses.Length; j++)
> {
> Query tmp = clauses[j].GetQuery();
> if(uniques.Contains(tmp) == false)
> uniques.Add(tmp, tmp);
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira