wmo-im / wis2-subscription-manager

An Electron application for browsing a WIS2 Global Discovery Catalogue, configuring WIS2 subscriptions, and viewing download metrics.
Apache License 2.0
2 stars 1 forks source link

how should the content of the search-box in WIS2 Subscription Manager translate into a WIS2-GDC query ? #61

Open maaikelimper opened 3 months ago

maaikelimper commented 3 months ago

I asked Tom to clarify why q=GRIB returns nothing and q=GRIB2 returns datasets

This is because the OGC API is doing a term search on the ElasticsSearch records and "GRIB" is a term used in the records while "GRIB2" is not

Tom suggested the WIS2 Subscription Manager could instead do q=*GRIB* to automatically add wildcards, however we might need to do this for all words in the input box so "GRIB Europe" would translate into q=*GRIB* AND *Europe*

We need to decide on how we want the content of the search-box in WIS2 Subscription Manager to be translated into a WIS2-GDC query

maaikelimper commented 3 months ago

Note: to ensure the search return records that can be subscribed to, WIS2 Subscription Manager could require "globalbroker" as a an additional term in the record.

So for example the input: GRIB Europe Would result in the query: q=(*GRIB* OR *Europe*) AND *globalbroker*

RoryPTB commented 2 months ago

@alimand Some notes to bear in mind: