lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piotr Dobrowolski (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENENET-13) Multisearcher one word query bug
Date Sat, 05 Aug 2006 15:17:16 GMT
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

        

Mime
View raw message