Slackbot
10/10/2023, 9:33 PMJason Bosco
10/10/2023, 10:12 PMI noticed when we search for two words with a space separated, only the first word is highlightedThat doesn't sound like the default settings... For eg, here's one of our demos showing both words highlighted with the default settings. Could you share a curl command with all the query params you're using, minus the API key that shows this issue on your dataset?
Jason Bosco
10/10/2023, 10:12 PMJason Bosco
10/10/2023, 10:12 PMIs it possible to weight results higher where the second word also matches?this is the default behavior as well. Could you share a curl command that shows a different behavior?
Todd Tarsi
10/10/2023, 10:13 PMJason Bosco
10/10/2023, 10:13 PMTodd Tarsi
10/10/2023, 10:14 PM{
filter_by: `...`,
q: 'One two',
query_by: '...',
sort_by: 'timestamp:desc',
per_page: PAGE_SIZE,
page,
}Todd Tarsi
10/10/2023, 10:15 PMJason Bosco
10/10/2023, 10:16 PMsort_by: 'timestamp:desc' will strictly order the results by timestamp... and could potentially rank results with higher relevancy further down, if they are more recent.
I'd recommend changing that to:
sort_by: '_text_match(buckets: 10):desc,timestamp:desc'
to interview relevance with recencyJason Bosco
10/10/2023, 10:16 PMTodd Tarsi
10/10/2023, 10:18 PM