Skip to content

OGCAPI-RECORDS Part 2 (Facets) - Retrieving Records in (a) Bucket(s)? #485

@davidblasby

Description

@davidblasby

As I mentioned in my quick review (#484) that one of the outstanding functionality is how to get the records in a bucket.

Here is a typical UX (this is GeoNetwork 4). The "facets" are along the left side. These are directly expressible in the OGCAPI-Records Part 2 Facets manner (see my implementation - geonetwork/geonetwork#100).

Image

Typically, the user will "tick" a few of these boxes - and the text search will be limited to the records in those "buckets".

I don't see how the you can do that in the current Facets definition.

  1. My original thoughts were that you could do a 1:1 relationship between term facets and the equivalent queryable (note - this linkage is a bit ambiguous as I put in my previous issue).

    I've currently implemented queryables as a loose-text search - although the spec says:
    Equality predicates with any queryable not already listed in this table.
    I found this difficult to use - for example, its really useful to have a loose-text search on a title queryable. Having the user EXACTLY type in the title wouldn't be reasonable.

  2. However, for things like a histogram facet, you'd have to do a between (property >= min AND property <=max). I think this would require something like CQL (i.e. Features filtering)

  3. The filter facet implies some type of ability to do something like CQL. The format for the expression isn't defined. Perhaps this should be augmented with a human readable title as well?

So, I expect to use facets, a query mechanism needs to be defined: The user selects a set of buckets and they are used as a type of filter to the query (/items) endpoint.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions