This message was deleted.
# community-help
s
This message was deleted.
j
My current implementation is to query the primary index for page title attribute , and return the records.
This would indeed be the solution.
Most the time it has a full sentence / large number of words
You can set
per_page
to say
4
to show users only the top 4 results. You can also use the snippet field in the response, to only show the most relevant part of the field to the user
a
Hi Jason, • You can set
per_page
to say
4
to show users only the top 4 results. Yes, but the number of results is not the concern here, but rather the number of words are. • You can also use the snippet field in the response, Yes, but in that case, I may see the same snippet word multiple times. You can take a look at the image. the snippet wraps around the same word. is there a way to increase/decrease the amount of letters to be snipetted?
j
highlight_affix_num_tokens
will control the length of the snippet, documented in this table: https://typesense.org/docs/0.25.0/api/search.html#results-parameters