lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Aroush (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (LUCENENET-18) Search via Remoting Returns Incorrect Result
Date Wed, 11 Oct 2006 03:08:23 GMT
     [ http://issues.apache.org/jira/browse/LUCENENET-18?page=all ]

George Aroush resolved LUCENENET-18.
------------------------------------

    Resolution: Fixed

Fixed in 1.9, 1.9.1, and 2.0

> Search via Remoting Returns Incorrect Result
> --------------------------------------------
>
>                 Key: LUCENENET-18
>                 URL: http://issues.apache.org/jira/browse/LUCENENET-18
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Jon Sanford
>         Assigned To: George Aroush
>            Priority: Minor
>
> Searches performed across remoting boundaries return incorrect results. The same query
against the same index in a local search returns the correct results. The issue is with a
comparison done in the TermBuffer.CompareTo(TermBuffer other) method. The field names are
cast to System.Object for evaluation. The runtime is comparing the strings by reference rather
than value. The references will never match since the communication is across application
domains.
> Fix detail:
> -------------
> File: Index/TermBuffer.cs
> Class: TermBuffer
> Method: CompareTo(TermBuffer other)
> Change:
>      if ((System.Object) field == (System.Object) other.field)
> to
>      if (field == other.field)

-- 
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