Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include facet stats in a search result #52

Open
pvgenuchten opened this issue Oct 1, 2020 · 6 comments
Open

include facet stats in a search result #52

pvgenuchten opened this issue Oct 1, 2020 · 6 comments

Comments

@pvgenuchten
Copy link
Contributor

This is probably relevant for oapi-common, but i want to raise it here first, because the faceted search concept is currently most common in the catalogue domain, but i can see similar uses in oapif & sensor api's.

A typical use case in catalogues is faceted search to further limit a search result. Faceted search requires an analyses of the search result best managed during the backend query, resulting in some statistics being added to a search result.

What would be the best approach/location in a typical OAPIR search response to include this information and does it make sense to suggest this as a common extension to OAPI?

@mhogeweg
Copy link
Contributor

mhogeweg commented Oct 1, 2020

I see facet information as a property of the catalog as a whole (or of a collection), not so much specific to a search. when performing a search, selections made in facets translate to a search expression that could also have been generated based on a different UI or based on CQL/Filter style queries.

@pvgenuchten
Copy link
Contributor Author

my request relates to facet information specific to the search result, so you query for "forest", then the search result will return a first page of results plus facet statistics on the total resultset (how many maps/services/datamodels/datasets, how many results in projection a/b/c, how many results in language eng/fre/ger, etc). See for example the geoss portal
image
for relevant protocols/keywords is per search result indicated how many results in the current result set

@mhogeweg
Copy link
Contributor

mhogeweg commented Oct 2, 2020

ok, I think that would make for a nice extension. It would require some discussion as not all facets are as clean as a term+count. In Geoportal Server we support temporal, numeric, and spatial facets (see http://geoss.esri.com/geoportal_264):

image

We see faceted search as a 180 degree turn from the traditional 'google one box' search experience. Rather than guessing terms to look for something, you start with all the catalog has to offer. Through the choices made in the facets, you discard what is not relevant, whether it be spatially outside your area of interest, or temporally not the right period, or not the right service type, etc etc. Every choice made in one facet also filters content in the other facets, always leaving you with what matches all of the choices. You can quickly broaden the view by removing a facet choice.

Different catalogs (collections?) may include different facets, suitable for the content in the catalog. for example, same technology, now showing information from a series of Spatio-Temporal Asset Catalogs: http://geoss.esri.com/imagecatalog/

image

Is the goal of including this in the API to build the UI on top of that?

@pvretano
Copy link
Contributor

pvretano commented Nov 2, 2020

2020-11-02: This capability is a nice-to-have but it is not something that would be in the core but rather would be an extension.

@pvgenuchten
Copy link
Contributor Author

Sure, let's discuss it in the scope of an extension

@pvretano pvretano added this to To do in Part 1: Core via automation Mar 22, 2021
@pvretano pvretano moved this from To do to Extensions in Part 1: Core Mar 22, 2021
pvgenuchten pushed a commit to pvgenuchten/ogcapi-records that referenced this issue Apr 10, 2021
pvgenuchten pushed a commit to pvgenuchten/ogcapi-records that referenced this issue Apr 10, 2021
pvgenuchten pushed a commit to pvgenuchten/ogcapi-records that referenced this issue Apr 10, 2021
pvgenuchten pushed a commit to pvgenuchten/ogcapi-records that referenced this issue Apr 10, 2021
@tomkralidis tomkralidis removed this from Extensions in Part 1: Core May 29, 2023
@tomkralidis tomkralidis added this to To do in Extensions May 29, 2023
tomkralidis added a commit that referenced this issue Jun 1, 2024
@tomkralidis
Copy link
Contributor

FYI #372 introduces the setup for OGC API - Records - Part 2: Facets. Perhaps we can work on this at the July sprint @pvgenuchten @fgravin @jahow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants