lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Sanford (JIRA)" <>
Subject [jira] Created: (LUCENENET-18) Search via Remoting Returns Incorrect Result
Date Tue, 03 Oct 2006 17:06:19 GMT
Search via Remoting Returns Incorrect Result

                 Key: LUCENENET-18
             Project: Lucene.Net
          Issue Type: Bug
            Reporter: Jon Sanford
            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)
     if ((System.Object) field == (System.Object) other.field)
     if (field == other.field)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message