Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We are facing an issue on a new Vendr shop.
The products can contain one or more categories
We use the GetProducts method in the ProductSurfaceController in order to get the (paged) products.
if (categories.Any()) { query = query.And().GroupedOr(new string[] { "categoryAliases" }, categories); }
The products are shown on the category page, the only thing is, the products in the 'towels-sale' category are also visible on the 'towels' category.
How does that work in the Examine query?
Hi Peter,
I think by default queries are wildcard queries and so it will match any category where the word appears, what you want though is an exact match query.
I think ultimately you need to wrap the category in quote marks "term" to force it to be an exact match. This SO post might help https://stackoverflow.com/questions/39641983/search-by-exact-words-in-a-phrase-using-umbraco-examine
"term"
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Examine query question
We are facing an issue on a new Vendr shop.
The products can contain one or more categories
We use the GetProducts method in the ProductSurfaceController in order to get the (paged) products.
The products are shown on the category page, the only thing is, the products in the 'towels-sale' category are also visible on the 'towels' category.
How does that work in the Examine query?
Hi Peter,
I think by default queries are wildcard queries and so it will match any category where the word appears, what you want though is an exact match query.
I think ultimately you need to wrap the category in quote marks
"term"
to force it to be an exact match. This SO post might help https://stackoverflow.com/questions/39641983/search-by-exact-words-in-a-phrase-using-umbraco-examineis working on a reply...