Global Text Search - How to search Asset Number

Celliven
Giga Expert

Hi There

I have added a search group to look at [alm_asset] and [alm_hardware] and allocated the roles of admin and itil.

find_real_file.png

I would think that If I have these tables selected ServiceNow should perform a search against all fields on both tables, however when I perform a search against a serial number I do not get a hit?

find_real_file.png

I'm sure this must be a fairly standard request.....

Any thoughts?

Thanks

Chris

1 ACCEPTED SOLUTION

larstange
Mega Sage

Hi



you just have to modify the dictionary for the alm_asset table and enable Text Indexing for the asset tag field. After this you have to regererate the text index



find_real_file.png


find_real_file.png


find_real_file.png


View solution in original post

10 REPLIES 10

larstange
Mega Sage

Hi



The Generate text index will only show on the collection, as you will regenerate the text index for the entire table - therefore just open the collection entry in the dictionary and click the link.


I don't thing it will make sense to click it on the asset_tag dictionary entry.



I just changed the value of the "Text index" field directly in the dictionary table so I didnt't have to mess with any ui policies


Now that makes sense, especially when I test it on another instance and 'hey Presto' works just as you described.



The issue I have is that the instance I am working on doesn't have a Collection entry on any table.



Not sure why and can't see how to create one.



Have you heard of that before?


larstange
Mega Sage

If you go to Asset -> All Assets and open the table. Then right click the header and go to the dictionary


find_real_file.png


The you MUST have a collection entry



find_real_file.png



If not you have a corruption in your dictionary data model


Oh dear



sounds like a corruption in the data model


find_real_file.png



I'll have to escalate that and perhaps log it with ServiceNow.



Wonder how that happened, imagine it isn't an easy fix.



Thanks for all your help, I'll go back and mark your answer as correct, especially as I saw it work in another instance.



Thanks again



Chris


larstange
Mega Sage

Hi



You should be able to export the collection record from another instance as an XML file and import it to restore the record.


Or ServiceNow will probably be able to fix it.