Perhaps I can be clearer about my requirement... I need to populate a
portlet with a random list of documents of a specified size from the index,
thats all.
Thanks, and any help would be a greatly appreciated.
--------------------------------------------------
From: "Walter Underwood" <[EMAIL PROTECTED]>
Sent: Monday, July 07, 2008 5:06 PM
To: <solr-user@lucene.apache.org>
Subject: Re: implementing a random result request handler - solr 1.2
Why do you want random hits? If we know more about the bigger
problem, we can probably make better suggestions.
Fundamentally, Lucene is designed to quickly return the best
hits for a query. Returning random hits from the entire
matched set is likely to be very slow. It just isn't what
Lucene is designed to do.
wunder
On 7/7/08 8:58 AM, "Sean Laval" <[EMAIL PROTECTED]> wrote:
I have seen various posts about implementing random sorting relating to
the
1.3 code base but I am trying to do this in 1.2. Does anyone have any
suggestions? The approach I have considered is to implement my own
request
handler that picks random documents from a larger result list. I
therefore
need to be able to create a DocList and add documents to it but can't
seem to
do this. Does anyone have any advice they could offer please?
Regards,
Sean