json - Kentico Smart Search Index - any way to read it with the API? -


we need search box autocomplete working based on kentico search indexes, half site in cms app pages, , half in mvc. autocomplete webpart works on cms app pages, not mvc ones.

an option we're exploring use twitter typeahead js library in both sides of site, requires search terms in json file.

so we'd able load search index terms via kentico api , write out json file.

the searchindexinfo object doesn't seem have way index's terms writes out index files.

update

for clarification: can search via api, searchresultitems return title , content fields, , not contain search terms stored in index files.

for instance, search index custom page type might build index based on documentname, description, location, city, company name, designcategory fields. of stored in index somewhere, how read terms stored in index?

not results, have documentname(title) , description (content).

we're trying convert search index files json representation, not search results.

of course, if smartsearchdialog webpart predictive search on title , content fields, go that, believe smartsearchdialog actual search not?

thanks

there api it:

// gets search index searchindexinfo index = searchindexinfoprovider.getsearchindexinfo("newindex");  if (index != null) {     // prepares search parameters     searchparameters parameters = new searchparameters()     {         searchfor = "home",         searchsort = "##score##",         path = "/%",         classnames = "",         currentculture = "en-us",         defaultculture = culturehelper.englishculture.ietflanguagetag,         combinewithdefaultculture = false,         checkpermissions = false,         searchinattachments = false,         user = (userinfo)membershipcontext.authenticateduser,         searchindexes = index.indexname,         startingposition = 0,         displayresults = 100,         numberofprocessedresults = 100,         numberofresults = 0,         attachmentwhere = string.empty,         attachmentorderby = string.empty,     };      // performs search , saves results dataset     system.data.dataset results = searchhelper.search(parameters);      if (parameters.numberofresults > 0)     {         // search found @ least 1 matching result, , can handle results      } } 

more details here.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -