Hello everybody!
I have got an issue with search of products by tags.
Is it possible to use partial search (something like this products(query: "tag:*Enter*", first: 5, sortKey: TITLE) )?
I did not find any documented solution, but experimentally I have found that the query
{
products(query: "tag:*(Enter)*", first: 5, sortKey: TITLE) {
edges {
node {
id
title
tags
}
}
}
}
returns next result
{
"data": {
"products": {
"edges": [
{
"node": {
"id": "gid://shopify/Product/877660733487",
"title": "Apple iPhone 7 with 'quotes'",
"tags": [
"Entertainment"
]
}
},
{
"node": {
"id": "gid://shopify/Product/841148301359",
"title": "Nokia Entertainment",
"tags": [
"Excelent",
"Good"
]
}
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 7,
"actualQueryCost": 4,
"throttleStatus": {
"maximumAvailable": 1000,
"currentlyAvailable": 996,
"restoreRate": 50
}
}
}
}
Unfortunately the second product does not contain any tag started with "Enter". It looks like filter also applied to the title field.
Does anybody know how can I get partial search by tags correctly?
Thank you in advance!
User | Count |
---|---|
12 | |
12 | |
10 | |
7 | |
6 |