How do I define the keyword on a table?

peterraeves
Mega Guru

When I search for the keyword 'I170911_009', it comes out empty.

Image 5.png

When I search for the same value in the column directly, it returns a record (as expected).

Image 6.png

So how do I modify the keywords to search through the vendor_ticket column? I need this for when searching in the global search.

1 ACCEPTED SOLUTION

peterraeves
Mega Guru

I found it. It seems I needed to click 'Generate Text Index' on the collection dictionary for the table. When I navigate to the table record, the indexes were there, and the check box 'Text index' was set correctly, but despite all that, ServiceNow did not generate the text indexes when I moved the table in between environments... After generating the text index, the search shows the expected results.



Image 5.png


View solution in original post

13 REPLIES 13

Allen Andreas
Administrator
Administrator

Hi,



As another user mentioned...are you typing literally "Keyword" in the text search box in your first example?



If you type it in the respective column, it'll search for "starts by" 'x'....



But if you search within your first screenshot, leave it as text, then put in ONLY the number that you listed, it would pull up that way too.



Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

adamjgreenberg
ServiceNow Employee
ServiceNow Employee

Guys,



Keywords is a search term in any dropdown menu. This is what the OP is using.



Screen Shot 2018-02-07 at 9.58.28 AM.png


Peter - Keywords are used to search the activities of that table



if you have say in the activity number then it will list all that record



find_real_file.png


one of the activity in the activities list has number as keyword:



find_real_file.png


Ah, ok, haha.



So, yea, I just tested in mine for using a Keyword 280 ...just to see if it would pull any Incident number that had 280 in it (sort of like the 'text' search feature) and it didn't work. I get that you need to define a different column and then go from there, and I don't search this way anyway, so it's not an issue for me.



It appears you have to define what is in 'collection' for keywords to work from.



Go to dictionary > table > Look for a collection entry and ensure it's set to true



Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Could you provide me with a screenshot, as I don't understand what you mean.



Afaik, Collection Dictionary Entries, are just dictionary entries for tables. So how would I define the keywords by using the collections?