I guess the question is, should I even be using lucene for this?

Basically, the collection is of 'new classified ads' / ads that are less
then 2 weeks old.

When someone hits the main ads page, I want to have a table/div containing a
random set of 20 new ads from that catalog.

The more I think about it, I might just not use the catalog at all. This
isn't a 'search' mechanism anyway, so I think I'm going to replan this and
go to the db directly.

On Thu, Mar 17, 2011 at 3:09 PM, Matthew Woodward <[email protected]>wrote:

> On Thu, Mar 17, 2011 at 12:48 PM, Jason Allen <[email protected]>
> wrote:
> > I have a collection built that could potentially have 10,000 or more
> > records.
> >
> > I need to query this catalog and grab 20 random records from it.
>
> What are the specific types of documents (or are they web pages?)
> you're using to create your collection, and how is the collection
> getting populated?
>
> Is 10,000 records the upper limit or will it grow beyond that?
>
> How up to the minute does the random document selection need to be?
> (I'm assuming not very given that you're pulling at random.)
>
> Maybe you should populate a database or in-memory collection of some
> sort (array, whatever) with basic metadata and do the randomization
> piece from that since that's dead simple--just a random idea.
>
> --
> Matthew Woodward
> [email protected]
> http://blog.mattwoodward.com
> identi.ca / Twitter: @mpwoodward
>
> Please do not send me proprietary file formats such as Word,
> PowerPoint, etc. as attachments.
> http://www.gnu.org/philosophy/no-word-attachments.html
>
> --
> official tag/function reference: http://openbd.org/manual/
>  mailing list - http://groups.google.com/group/openbd?hl=en
>

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to