The CreatorCon Call for Content is officially open! Get started here.

Add costume table to index source and change the default searchable field

Vlad2
Tera Contributor

Can somebody please help me whit a task ?!

I'm new whit AI search source.

So I've created a table extendable from task and then I created and index source and a Search source for that table. 

The problem is that in that table I have records and if I try to search them in the Portal search it only works if I use the number field. I want it to be searchable whit the u_name field. 

 

what I have try so far: 

 I've change the display field on the table to be set true to u_name field and false to number field.

I've added the fallowing attribute:  ref_auto_completer=AJAXTableCompleter,ref_ac_columns_search=true,ref_ac_columns=u_name

 and still I cannot search my record base on the name field. 

Cand somebody help me please?

 

The whole problems starts  because apparently the business application table is not indexable from what I see so I had to create a mirror table for the cmdb_ci_business_app table in order to be able to see records of it on portal.

 

1 REPLY 1

Anand Kumar P
Giga Patron

Hi @Vlad2 ,
Please check below link and configure  accordingly for text search for u_name.
https://www.servicenow.com/community/now-platform-blog/introduction-to-search-sources-in-service-por...
Please mark it as Solution Proposed and Helpful if it works for you.
Thanks,
Anand