-
Notifications
You must be signed in to change notification settings - Fork 31
Description
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).

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.
-
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 atitle
queryable. Having the user EXACTLY type in the title wouldn't be reasonable. -
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) -
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.