Search term with special characters like Hyphen or Dot returns highlighted text undefined

jquery

#1

Hi Team,

We are using jquery search and autocomplete plugin where search plugin configuration is as follows:

$("#st-search-page-input").swiftypeSearch({
    engineKey: "******",
    renderFunction: customRenderFunction,
    fetchFields: {page: ['title','body','category','url','segment']},
    resultContainingElement: "#st-results-container",
    filters: readFilters,
    highlightFields: {'page': {'body': {'fallback': true}}}
});

But when we are searching for words with special characters like hyphen(-) or dot(.) in the search box the JSONP call returns highlighted content undefined.

Here is the example JSONP call:

https://api.swiftype.com/api/v1/public/engines/search.json?callback=jQuery33105480672630905026_1529948193747&q=userinputservice.windowfocused&engine_key=******&page=1&per_page=10&fetch_fields[page][]=title&fetch_fields[page][]=body&fetch_fields[page][]=category&fetch_fields[page][]=url&fetch_fields[page][]=segment&spelling=strict&highlight_fields[page][body][fallback]=false&_=1529948193748

Please suggest.

Thank you,