I'm trying to get swiftype to highlight search results in a multiple keywords search.
If a result body and/or title has atleast one of the keywords matched, they need to be highlighted.
I also noticed that if a result has matching keywords, they are not highlighted either.
It only highlights if the search is only one keyword which leads me to believe that multiple keyword highlights are ignored?
data: {
engine_key : 'EngineKeyGoesHere',
q: keyword,
per_page: 10,
page: pageNum,
spelling: "strict",
highlight_fields: {'page': {'title': {'size': maxStrLen, 'fallback': true },'body': {'size': maxStrLen, 'fallback': true }}},
},
I have verified that there are matching keywords with in the maxStrLen limit.
Any idea on what I can do get matching keywords (individual) to be highlighted in a multiple keyword search?