lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <>
Subject [jira] Commented: (LUCENENET-86) Nunit test for TestSort.
Date Thu, 23 Aug 2007 07:56:30 GMT


Digy commented on LUCENENET-86:

Hi George,

I downloaded the new patches, started with a "clean" version and again two test
cases failed. After i applied the patch i sent, they passed.

Without the patch i get the following error.

System.InvalidCastException: Specified cast is not valid.
and StackTrace:
   at Lucene.Net.Search.FieldDocSortedHitQueue.LessThan(Object a, Object b)
   at Lucene.Net.Util.PriorityQueue.UpHeap()
   at Lucene.Net.Util.PriorityQueue.Insert(Object element)
   at Lucene.Net.Search.MultiSearcher.Search(Weight weight, Filter filter, Int32 n, Sort sort)
   at Lucene.Net.Search.Hits.GetMoreDocs(Int32 min)
   at Lucene.Net.Search.Hits..ctor(Searcher s, Query q, Filter f, Sort o)
   at Lucene.Net.Search.Searcher.Search(Query query, Sort sort)
   at Lucene.Net.Search.TestSort.AssertMatchesPattern(Searcher searcher, Query query, Sort
sort, String pattern)
   at Lucene.Net.Search.TestSort.RunMultiSorts(Searcher multi)
   at Lucene.Net.Search.TestSort.TestMultiSort()


> Nunit test for TestSort.
> ------------------------
>                 Key: LUCENENET-86
>                 URL:
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Digy
>            Priority: Minor
>         Attachments: FieldDocSortedHitQueue.patch
> There are two bugs in FieldDocSortedHitQueue.LessThan method
> 1-  in  "case SortField.FLOAT:"
>      The  value of   docA.fields[i] or docB.fields[i] may be a string. In this case SupportClass.Single.Parse
should be invoked.
> 2- No null control for docA.fields[i] or docB.fields[i].

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message