Working with search results consists in obtaining information from objects of search results and highlighting occurrences in the text of documents.
Obtain search result information When a search is complete, the search method returns an object of type SearchResult. This page describes the information available in an object of type SearchResult.
From the root object of the search result, information is available on the number of documents found, the number of occurrences of the words and phrases found, as well as detailed information on each individual document.... log (); console . log ( 'Documents: ' + result...getDocumentCount ()); console . log ( 'Total occurrences: ' + result...