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
Hi people,
Relating to Umbraco version 8.18.4.
We're noticing strange behaviour when executing a query the members index using the examine management UI through backoffice.
Basically, even when the query syntax is looking for an exact match, partial matches are also returned.
For example, let's query a field named 'department' for the term "Management".
The retuned results include any variation of management, eg. "Senior Management" and "General Management" is also returned.
Here's the query syntax: +department:"Management", see screenshots below.
Any thoughts on how to perform an exact match search?
Thanks in advance.
It isn't simple I'm afraid because the words are tokenised so since both strings contain Management they will be returned in the results, however look at the last few posts in this thread to get some ideas
https://our.umbraco.com/forum/extending-umbraco-and-using-the-api/93984-is-it-possible-to-return-a-single-document-exact-match-using-examine
All good thanks for the reference.
The TransformingIndexValues event to set a custom queryable field with the value prefixed and suffixed will do the trick nicely.
Cheers
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Exact match syntax on members index returning partical matches
Hi people,
Relating to Umbraco version 8.18.4.
We're noticing strange behaviour when executing a query the members index using the examine management UI through backoffice.
Basically, even when the query syntax is looking for an exact match, partial matches are also returned.
For example, let's query a field named 'department' for the term "Management".
The retuned results include any variation of management, eg. "Senior Management" and "General Management" is also returned.
Here's the query syntax: +department:"Management", see screenshots below.
Any thoughts on how to perform an exact match search?
Thanks in advance.
It isn't simple I'm afraid because the words are tokenised so since both strings contain Management they will be returned in the results, however look at the last few posts in this thread to get some ideas
https://our.umbraco.com/forum/extending-umbraco-and-using-the-api/93984-is-it-possible-to-return-a-single-document-exact-match-using-examine
All good thanks for the reference.
The TransformingIndexValues event to set a custom queryable field with the value prefixed and suffixed will do the trick nicely.
Cheers
is working on a reply...