You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue
If the geometry boost is enabled in the configuration, and it returns an empty geometry
coordinates
:
[[]]
type
:
"Polygon"
Then main search returns an error
Error is: Bad Request.
Request:
{"aggregations":{},"from":0,"size":10,"sort":[{"_score":"desc"}],"query":{"bool":{"must":[{"terms":
{"isTemplate":["n"]}}],"must_not":{"terms":{"resourceType":["service","map","map/static","mapDigital"]}},
"should":[{"geo_shape":{"geom":{"shape":{"type":"Polygon","coordinates":[[]]},"relation":"within"},"boost":10}},
{"geo_shape":{"geom":{"shape":{"type":"Polygon","coordinates":[[]]},"relation":"intersects"},"boost":7}}],
"filter":[{"query_string":{"query":"*:* AND (draft:n OR draft:e)"}}]}},"track_total_hits":true,"_source":["uuid","id","title","resource*","resourceTitleObject","resourceAbstractObject","overview","logo",
"codelist_status_text","linkProtocol","contactForResource*.organisation*","contact*.organisation*",
"userSavedCount","op*","groupOwner","owner","id"]}
.
Error:
{"error":{"root_cause":[{"type":"exception","reason":"not enough points to build a line"}],
"type":"x_content_parse_exception","reason":"[1:281] [bool] failed to parse field [should]","caused_by":
{"type":"x_content_parse_exception","reason":"Failed to build [geojson] after last required field arrived","caused_by":
{"type":"exception","reason":"not enough points to build a line"}}},"status":400}.
Expected
This case is handled and does not break the search
The text was updated successfully, but these errors were encountered:
Issue
If the geometry boost is enabled in the configuration, and it returns an empty geometry
Then main search returns an error
Expected
This case is handled and does not break the search
The text was updated successfully, but these errors were encountered: