Open maaikelimper opened 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*
@alimand Some notes to bear in mind:
GRIB
not returning GRIB2 results seems unique to the Canada GDC. The China GDC works as expected, so you will need to add a conditional statement here to check if the Canada GDC is selected, and if so, put asterisks around each word.
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 intoq=*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