1 Jul 2002 07:04
Re: search bean and sorting
Peter Carlson <carlson <at> bookandhammer.com>
2002-07-01 05:04:16 GMT
2002-07-01 05:04:16 GMT
Hi Srinivas,
I have just tried your code and I think I found the problem.
You didn't create the global array that is required. If you uncomment the
line
SortedField.addField("mydate",indexStore);
This will create a sort order based on the date.
Then if you run your tests it will work. I just tried it and it works for
me.
This generic mechanism should allow you to sort by as many fields as you
want.
I hope this helps.
--Peter
On 6/23/02 2:49 PM, "Kotamraju, Srinivas, BmS- NY1540"
<Srinivas.Kotamraju <at> bmsus.com> wrote:
>
> hi peter,
> I sent an email earlier with questions about the search bean, and thanks for
> the feedback. I am still not able to sort the dates.Enclosed is the test
> code..I have 2 documents with different dates.In the hitlist, I would not
> get them in the right order..I get the record of 04/22/02 first before the
(Continue reading)
RSS Feed