Re: Faceting over limited result set

2007-11-13 Thread Mike Klaas
On 13-Nov-07, at 4:44 PM, Pieter Berkel wrote: On Nov 14, 2007 6:44 AM, Mike Klaas <[EMAIL PROTECTED]> wrote: Thanks Mike, that looks like a good place to start. While I really can't think of any practical use for limiting the size of DocSet other than simple faceting, the new search component

Re: Faceting over limited result set

2007-11-13 Thread Pieter Berkel
On Nov 14, 2007 6:44 AM, Mike Klaas <[EMAIL PROTECTED]> wrote: > > An implementation might look like: > > DocList superlist; > int facetDocLimit = params.getInt(DMP.FACET_DOCLIMIT, -1); > if(facetDocLimit > 0 && facetDocLimit != req.getLimit()) { >superlist =

Re: Faceting over limited result set

2007-11-13 Thread Mike Klaas
On 12-Nov-07, at 8:03 AM, Chris Hostetter wrote: if what you are interested in is stats on the first N docs according to a specific sort (score or otherwise) then you could write a custom request handler that executed a search with a limit of N, got the DocList, iterated over it to build a

Re: Faceting over limited result set

2007-11-12 Thread Chris Hostetter
: It's not really a performance-related issue, the primary goal is to use the : facet information to determine the most relevant product category related to : the particular search being performed. ah ... ok, i understand now. the order does matter, you want the "top N" documents sorted by some

Re: Faceting over limited result set

2007-11-12 Thread Pieter Berkel
On 13/11/2007, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > > can you elaborate on your use case ... the only time i've ever seen people > ask about something like this it was because true facet counts were too > expensive to compute, so they were doing "sampling" of the first N > results. > > In

Re: Faceting over limited result set

2007-11-12 Thread Chris Hostetter
: I'm trying to obtain faceting information based on the first 'x' (lets say : 100-500) results matching a given (dismax) query. The actual documents : matching the query are not important in this case, so intuitively the can you elaborate on your use case ... the only time i've ever seen people

Faceting over limited result set

2007-11-11 Thread Pieter Berkel
I'm trying to obtain faceting information based on the first 'x' (lets say 100-500) results matching a given (dismax) query. The actual documents matching the query are not important in this case, so intuitively the simplest approach I can think of would be to limit the result set to 'x' documents