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
Describe the bug
I want to combine the sameElement and Fuzzy Search on a map or struct field. Trying to do so I get the response that the serializing of FuzzyItem in same_element is not implemented.
To Reproduce
Steps to reproduce the behavior:
Create the schema:
schema doc {
document doc {
field data type map<string, string> {
indexing: summary
struct-field key { indexing: attribute }
struct-field value { indexing: attribute }
}
}
fieldset default {
fields: data
}
}
Run the following Query:
{
"yql": "select * from sources doc where data contains sameElement(key contains 'some key', value contains({maxEditDistance:2}fuzzy('Some value')))",
"tracelevel": 5
}
See error
YQL query parsed: [Invalid query: Serializing of FuzzyItem in same_element is not implemented, please report this as a bug.]
Illegal Query: FUZZY(Some value,2,0,false) value:Some value field is not a string attribute
Full Response:
{
"trace": {
"children": [
{
"message": "No query profile is used"
},
{
"message": "Invoking chain 'vespa' [com.yahoo.prelude.statistics.StatisticsSearcher@native -> com.yahoo.prelude.querytransform.PhrasingSearcher@vespa -> ... -> federation@native]"
},
{
"children": [
{
"message": "YQL query parsed: [Invalid query: Serializing of FuzzyItem in same_element is not implemented, please report this as a bug.]"
},
{
"message": "Federating to [text]"
},
{
"message": "Ignoring fill(null): Hits are unfillable: result.hits().getFilled()=null"
},
{
"message": "Query time query 'data:{key:some key value:Some value}': 2 ms"
},
{
"message": "Summary fetch time query 'data:{key:some key value:Some value}': 0 ms"
}
]
}
]
},
"root": {
"id": "toplevel",
"relevance": 1.0,
"fields": {
"totalCount": 0
},
"errors": [
{
"code": 3,
"summary": "Illegal query",
"source": "text",
"message": "FUZZY(Some value,2,0,false) value:Some value field is not a string attribute"
}
]
}
}
Expected behavior
I am able to use fuzzy in the sameElement Search which performs a fuzzy search on the attribute Field of the map or struct.
Environment (please complete the following information):
Dockerized vespa
Vespa version
Vespa version: 8.471.25
Additional context
this works:
{
"yql": "select * from sources doc where data.value contains({maxEditDistance:2}fuzzy('Some value'))",
"tracelevel": 3
}
and this works:
{
"yql": "select * from sources doc where data contains sameElement(key contains 'some key', value contains 'some value')",
"tracelevel": 3
}
The text was updated successfully, but these errors were encountered:
Describe the bug
I want to combine the sameElement and Fuzzy Search on a map or struct field. Trying to do so I get the response that the serializing of FuzzyItem in same_element is not implemented.
To Reproduce
Steps to reproduce the behavior:
YQL query parsed: [Invalid query: Serializing of FuzzyItem in same_element is not implemented, please report this as a bug.]
Illegal Query: FUZZY(Some value,2,0,false) value:Some value field is not a string attribute
Full Response:
Expected behavior
I am able to use fuzzy in the sameElement Search which performs a fuzzy search on the attribute Field of the map or struct.
Environment (please complete the following information):
Dockerized vespa
Vespa version
Vespa version: 8.471.25
Additional context
this works:
and this works:
The text was updated successfully, but these errors were encountered: