- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2022 03:26 AM
Hi community,
I'm actually facing an issue about search on Service portal.
Indeed, when searching a term, only one letter can set the results KO :
- when I'm looking for "contentieux", Service Now founds a catalog item with this name
- when I'm looking for "contentieu" (also without the "x" letter), Snow doesn't find anything...
How could I configure Snow, for it to find results, whatever the exact term I give to it ?
Please note that I'm using the OOB Typeahead Search widget, and I believe without AISearch.
Thanks for your answers ! 🙂
Solved! Go to Solution.
- Labels:
-
Search
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2022 03:32 AM
Hi
Are you using Search Sources?
I'm not aware of any configuration to solve this, however here is a simple trick that should get you the results you're looking for. All you have to do is append an asterisk (*) to the end of the search term in each of the search sources
For example in the Knowledge Search Source:
kb.addQuery('123TEXTQUERY321', query+"*");
This tells the Zing search engine to perform a "starts with" search instead of the full word.
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2022 03:32 AM
Hi
Are you using Search Sources?
I'm not aware of any configuration to solve this, however here is a simple trick that should get you the results you're looking for. All you have to do is append an asterisk (*) to the end of the search term in each of the search sources
For example in the Knowledge Search Source:
kb.addQuery('123TEXTQUERY321', query+"*");
This tells the Zing search engine to perform a "starts with" search instead of the full word.
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2022 08:44 AM
Hi Sandeep,
Thanks for your feedback.
I believe that I'm using search sources, yes.
In my case, the one which is concerned should be OOB Catalogs search sources, given that my term "Contentieu" should correspond to a catalog item, right ?
I did have a look on this search source, but I can't find any line with the query, but I have this line :
if (indexGroup)
sc.addQuery('123TEXTINDEXGROUP321', indexGroup);
I tried adding an asterix as you said, but had no effet 😞 And i don't find any variable that could stock the term of my search 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 05:28 AM
Hi Sandeep,
I've looked through the Data fetch script in my Catalogs search source, and indeed, I've found a line where I can see the search terms.
I've also added an asterisk before AND after my terms, to enable the search to be more large, like below :
sc = new sn_sc.CatalogSearch().search(portalValue, '', "*" + query + "*");
Thanks a lot !
Regards, Mathieu.