Announcing the Global SNUG Board of Directors. Learn more here
How many times a day do you "google"? It's where we go for information. I'm not exactly sure how many times I use the search engine, but if you're interested in what everyone else is doing .. check out this link (http://www.internetlivestats.com/google-search-statistics/). Pretty wild.
I thought about this the other day when I needed to search for some text in a custom application I was building. I considered using a list search with a "contains" clause, but in this case I needed data from two different tables (Site and Event). I ended up writing a GlideRecord query to get the data I needed. Then I realized the users of this application would not have access to write these native queries, and even if they did ... what kind of a user experience is that.
I've been meaning to dig into Zing Text Search but didn't have a real need to until now. The rest of this blog contains the steps I took to add value for this particular application.
NOTE: The information I mention is a subset of the full power of the Zing Text Search. For more information here is the documentation reference (https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/administer/search-administratio...).
I'm part of a team working on a city guide application. You know, the application you'd use if you went to a new city that helps you find local sites and events. Turns out there's more to building this type of application than just a slick mobile interface although we do have this as well (done via portal by the way). Behind the scenes, there is a site and event discovery engine. As this application discovers activities it creates corresponding records in the guide application. A workflow kicks off and scans the content for application compliance and auto-approves the site/event or routes it to the site administrator for a manual approval. There is also a customer service group that monitors and maintains the quality and integrity of this information. We are focused on making it easy for these groups to quickly get the information they need.
The bulk of information for this application is stored in text fields. Site and event names are important, but site and event description fields are where the information lives. A list lookup using a "name contains" or a "description contains" filter will not cut it.
Writing a GlideRecord query is not an option either. Note even though these two queries returned the same records, they are in a different order. An "order by" or sort won't help either because we need to somehow understand what's in the name and description fields. How can we be more like google? How can the application respond with relevant information in a logical order?
Apply Zing text search to our tables of course! Here's how to do it:
When calls come in or research has to be done, the guide administrators can use ServiceNow global search to retrieve all relevant records quickly and in order. If necessary the weights of any field can be adjusted to return expected results.
Pretty straight forward. Every custom application may not need to use Zing Text Search, but it's nice to know you've got it when it counts!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.