Service portal search - terms

mathieu_brule
Kilo Sage

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 ! 🙂

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @mathieu.brule ,

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

View solution in original post

3 REPLIES 3

Community Alums
Not applicable

Hi @mathieu.brule ,

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

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 😞

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.