Yeah I tried looking this up, If i wanted to do it by document id (highest docs first) , does this mean doing something like
hits = searcher.search(query, new Sort(new SortFeild(DOC, true); // or something like that, is this way of sorting any different performance wise to what i was doing before .. On 8/21/06, Yonik Seeley <[EMAIL PROTECTED]> wrote:
On 8/20/06, M A <[EMAIL PROTECTED]> wrote: > The index is already built in date order i.e. the older documents appear > first in the index, what i am trying to achieve is however the latest > documents appearing first in the search results .. without the sort .. i > think they appear by relevance .. well thats what it looked like .. You can specify a Sort by internal lucene docid (forward or reverse). That's your fastest and least memory intensive option if the docs are indexed in date order. -Yonik http://incubator.apache.org/solr Solr, the open-source Lucene search server --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]