Scan does work, you just have to call it once per index that you want to
generate facets for.
Rob
On Fri, 2008-09-19 at 16:02 -0400, LeVan,Ralph wrote:
> Scan doesn't work. A scan response assumes that all the terms returned
> are from the index in the request. So, there is no indication of the
> source index for the individual terms. Facets can come from many
> indexes. Languages are popular facets and they'd come from a language
> index. Similarly for dates.
>
> We need a response richer than scan.
>
> In addition, the current proposal would require 2 interactions with the
> server; once to do the search and once to get back the facets. My
> proposal returns the facets with the search response.
>
> My response goes into the extraResponseData and looks like this:
> <facetReport>
> <facets index="indexName" count="numberOfFacets">
> <facet count="numberOfMatchingDocuments">term</facet>
> </facets>
> </facetReport>
>
> As you can see, I clump my facets by index. If you prefer to have a
> flatter response and leave the clumping to the client, then the response
> could be:
> <facets count="numberOfFacets">
> <facet index="indexName" count="numberOfMatchingDocuments>term</facet>
> </facets>
>
> The count on the facets element could be omitted. Some applications
> prefer not to have to count the number of subelements.
>
> Ralph
>
>
>
> > -----Original Message-----
> > From: Ray Denenberg, Library of Congress [mailto:]
> > Sent: Friday, September 19, 2008 3:41 PM
> > To:
> > Subject: Re: [search-ws] faceted search
> >
> > Ralph:
> >
> > "How about a flag on the request that says that you want facets
> > returned
> > in the search response?"
> >
> > But how would they be presented in a search response? I think the
> > reason for
> > suggesting scan is that the scan response is essentially how you want
> > the
> > facets presented.
> >
> > --Ray
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this mail list, you must leave the OASIS TC that
> > generates this mail. Follow this link to all your TCs in OASIS at:
> > https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this mail list, you must leave the OASIS TC that
> generates this mail. Follow this link to all your TCs in OASIS at:
> https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
>