How the keyword is searching in Article body for the knowledge Article while searching from service portal knowledge base.

Santoshi5
Giga Guru

While searching with the keyword on KB through the service portal if the word is available in the article body still showing this result.

as i checked the contextual search configuration for KB and the field is added only the short description still result showing if the keyword is available in the article body .

please anyone help me where this configuration done for searching the result. 

I want to show the search result , if the word is available in the short description only not in the article body

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Hi Santoshi,

 

To make a field excluded from search, you can use this.

Administering Zing Text Search - ServiceNow Wiki

 

 

5.4 Removing an Index for a Specific Field

 

To remove an index against a specific field within an indexed table:

 

Navigate to a form containing the field.

 

Right-click the field label and select Configure Dictionary (Personalize Dictionary in versions prior to Fuji).

 

Add no_text_index=true to the Attributes field. Separate multiple attributes with a comma (with no spaces).

 

Click Update.

 

The system no longer indexes or queries the field for text search results.

 

=> Make sure to re-generate text index as well

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.

 

Cuong Phan

DXC Consultant.

Regards,
Cuong Phan
ServiceNow Technical Lead

View solution in original post

4 REPLIES 4

Cuong Phan
Kilo Sage

Hi Santoshi,

 

This is not Contextual Search, It is Search source. Please check as below:

find_real_file.png

 

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.

 

Cuong Phan

DXC Consultant.

 

Regards,
Cuong Phan
ServiceNow Technical Lead

Thanks Cuong Phan,

Could you please confirm In the above script where I need to add the "Articles body" field is false , So the searching result show only if the keyword is available in the short description not in the "Article body".

Appreciate if you help me to stop searching in the Article body.

 

Hi Santoshi,

 

To make a field excluded from search, you can use this.

Administering Zing Text Search - ServiceNow Wiki

 

 

5.4 Removing an Index for a Specific Field

 

To remove an index against a specific field within an indexed table:

 

Navigate to a form containing the field.

 

Right-click the field label and select Configure Dictionary (Personalize Dictionary in versions prior to Fuji).

 

Add no_text_index=true to the Attributes field. Separate multiple attributes with a comma (with no spaces).

 

Click Update.

 

The system no longer indexes or queries the field for text search results.

 

=> Make sure to re-generate text index as well

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.

 

Cuong Phan

DXC Consultant.

Regards,
Cuong Phan
ServiceNow Technical Lead

Thanks Cuong Phan,

I did the above configuration and its working perfectly as per my requirement.

Thanks a lot:)