Need help in ts_weight attribute

Pihu1
Tera Contributor

Hi Community,

 

What is ts_weight attribute for Number field ?How it works? By default  for Number field it's ts_weight=50 can we change it? .I have an issue in SEARCHING Number field ,I have a custom table with Number field whenever I am searching for Number it is not giving the result its showing No records to Display.  What might be the issue? Will it be fixed if I change ts_weight=50 value to 100.?

Thanks,

Pihu

8 REPLIES 8

Chandu Telu
Tera Guru
Tera Guru

Hi Pihu,

 

Yes, you can Max ts_weight limit of 255 per individual response.  

What might be the issue? Will it be fixed if I change ts_weight=50 value to 100.? - Are you searching in list view ?? - If yes sometime it's not working and you need modify the search with contain option for that table

 

Thanks
Chandu Telu
Please Mark Correct/helpful, if applicable,

Hi Pihu,

Follow Up - is your requirement is completed with my answer. Please mark answer as correct it will use for other community members if not let us know your issue so we can help you 

Thanks
Chandu Telu
Please Mark Correct/helpful, if applicable,

Hi Pihu,

Follow Up - is your requirement is completed with my answer. Please mark answer as correct it will use for other community members if not let us know your issue so we can help you 

Thanks
Chandu Telu
Please Mark Correct/helpful, if applicable,

Community Alums
Not applicable

Hi Pihu,

To Show relevancy in knowledge search results you should have property activated (glide.knowman.search.show_relevancy).

you can impact search relevancy by field weight in Knowledge? The  kb_knowledge table have different weightings (set using the ts_weight field attribute)section for configuring your search relevancy at the field level. If you're interested in understanding search relevancy from an overall perspective.

 

The default field weighting is:

  • kb_knowledge.number = 50
  • kb_knowledge.short_description = 10
  • kb_knowledge.meta = 10
  • Every other field has a weight of 1 per occurrence and weighting increases exponentially for sequence matches.

 

At ServiceNow, we're using a weighting of:

  • kb_knowledge.number = 50
  • kb_knowledge.short_description = 15
  • kb_knowledge.meta = 10
  • Every other field has a weight of 1 per occurrence.

 

The difference for us is in the short description weighting (short description = article title). We find our result set improves with a greater focus on the short description. With strong titling standards, our titles are written to contain a quick overview of the issue, which should match the users search frequently.

 

Mark Correct & Helpful, if applicable.

Thanks,

Sandeep