lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Aroush (JIRA)" <>
Subject [jira] Commented: (LUCENENET-18) Search via Remoting Returns Incorrect Result
Date Wed, 04 Oct 2006 01:59:21 GMT
    [ ] 
George Aroush commented on LUCENENET-18:

Good catch.  Thanks.

I have to make a new release -- most likely over the weekend.

-- George Aroush

> Search via Remoting Returns Incorrect Result
> --------------------------------------------
>                 Key: LUCENENET-18
>                 URL:
>             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
> 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:
For more information on JIRA, see:


View raw message