OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

search-ws message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: RE: [search-ws] faceted search

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:
  <facets index="indexName" count="numberOfFacets">
    <facet count="numberOfMatchingDocuments">term</facet>

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>

The count on the facets element could be omitted.  Some applications
prefer not to have to count the number of subelements.


> -----Original Message-----
> From: Ray Denenberg, Library of Congress [mailto:rden@loc.gov]
> Sent: Friday, September 19, 2008 3:41 PM
> To: search-ws@lists.oasis-open.org
> 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

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]