Re: Sorting a search result

2007-09-18 Thread Zach Bailey
Sure. You'll have to do away with the List abstraction in favor of the SortedSet abstraction which in your case is probably ok for the following reasons: 1.) List does not ensure the elements are unique (you probably don't want to have duplicate results), while Set and by extension SortedSet d

Re: Sorting a search result

2007-09-18 Thread anorman
>> I need some way to again sort by score on my compiled search result. >> >> Any thoughts? >> >> Thanks, >> Albert >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-ma

Re: Sorting a search result

2007-09-18 Thread Zach Bailey
You could use a SortedSet, which automatically inserts an object into its sorted position when calling add()? Cheers, -Zach anorman wrote: I have set up a search result made up of a resultBean object containing the information that I am fetching. Currently it is sorted by score (relevance) wh

Sorting a search result

2007-09-18 Thread anorman
. Any thoughts? Thanks, Albert -- View this message in context: http://www.nabble.com/Sorting-a-search-result-tf4475317.html#a12760356 Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail