Is it possible to have `highlights` in response of...
# community-help
g
Is it possible to have
highlights
in response of a Natural Language Query?
a
@Greg Bougeard, it should return normally. Could you share the curl request?
g
Even with a simple
q
highlights
are always empty in
documents
response
f
Could you share the response as well?
g
Untitled.json
j
If you look at the parsed_nl_query section in the response, notice how the query has been transformed into a filter_by (instead of a full text search parameter
q
). Highlights are only returned for the
q
parameter, and not for terms in
filter_by
currently. But may be we should fix that for nl_query, so that any keywords in the original
q
parameter sent in the search are highlighted, even if all of them get converted to filters and sorts. Could you open a GitHub issue for this?
👍 1