Details
-
Bug
-
Resolution: Fixed
-
Major
-
6.6.2, Cheshire-Cat
-
Untriaged
-
1
-
Unknown
Description
This query failed:
select meta().id, search_score() as score, h.reviews from hotel h
where SEARCH(h,“travel”)
ORDER BY score DESC
LIMIT 10
[
{ "code": 5000, "msg": "n1fty: search request parse err - cause: json: error calling MarshalJSON for type json.RawMessage: invalid character '_' in numeric literal", "query": "select meta().id, search_score() as score, h.reviews from hotel h\nwhere SEARCH(h,\"friend\")\nORDER BY search_score() DESC\nLIMIT 10" }]
Explain:
{
"#operator": "Sequence",
"~children": [
{
"#operator": "Sequence",
"~children": [
{
"#operator": "IndexFtsSearch",
"as": "h",
"bucket": "travel-sample",
"index": "hotel_reviews",
"index_id": "3db71d60db124221",
"keyspace": "hotel",
"namespace": "default",
"scope": "inventory",
"search_info":
,
"using": "fts"
},
,
{
"#operator": "Parallel",
"maxParallelism": 1,
"~child": {
"#operator": "Sequence",
"~children": [
,
{
"#operator": "InitialProject",
"result_terms": [
,
,
{ "expr": "(`h`.`reviews`)" } ]
}
]
}
}
]
},
]
}
Attachments
For Gerrit Dashboard: MB-46927 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
155888,3 | MB-46927: Enclose json.RawMessage within `"` before marshaling | master | n1fty | Status: MERGED | +2 | +1 |