Open godber opened 4 years ago
One noteworthy thing here. Both Jared and Peter tried to reproduce this issue but couldn't. Speaking with Jared, his mapping had keyword
for the NAME
field, while as mine is as follows:
"NAME": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
My es version is 6.8.1
.
Strangely a similar query for STATION
works:
"STATION": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
These three queries return what I'd expect:
q=STATION:010590*
q=STATION:01059099999
q=STATION:*10590*'
Note, the examples in this issue are all from a sample NOAA weather station dataset.
Apparently, if I omit the wildcard, it will match results:
curl -sS 'https://127.0.0.1/api/v2/s1?token=MYAWESOMETOKEN&q=NAME:BANAK' | jq .total
18716
This result set happens to match the result set when querying by STATION ID:
curl -sS 'https://api-noaa.tera1.lan/api/v2/noaa?token=MYAWESOMETOKEN&q=STATION:01059099999' | jq .total
18716
When doing a query like this:
query:"NAME:*US"
I get no results despite there being matching records.Hitting ES:
Hitting a Spaces API
There are also no results in QueryPoint.
I may be doing something wrong. We can discuss.