This message was deleted.
# community-help
s
This message was deleted.
j
I noticed when we search for two words with a space separated, only the first word is highlighted
That 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?
> Is it possible to wrap both words in a quote or similar to only specify them together? Yup, this is called phrase search, and is supported in Typesense, when you surround terms with "double quotes"
Is 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?
t
@Jason Bosco - Oh gosh, for the spaces, I bet its something with me not decoding the uri component right 😬
j
Ah yeah, that could be an issue!
t
Our query is very plain, I don’t think we’re clever enough to break this stuff yet:
Copy code
{
      filter_by: `...`,
      q: 'One two',
      query_by: '...',
      sort_by: 'timestamp:desc',
      per_page: PAGE_SIZE,
      page,
}
@Jason Bosco - Thank you for checking me on the system defaults! I’ll investigate how I’m handling spaces and such over the wire. Thanks!
j
sort_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 recency
t
@Jason Bosco - Thank you so much, this is awesome!
👍 1