Dave Thomas (pragdave)
02/06/2023, 4:32 PMqueryBy
to content, code
, which makes the search return relevant content, and prefer results containing the code.
However, by appending the code to the user’s query, I effectively disable the prefix search, because their query is never at end of the query string (the code is).
Is there a better way of handling this?Jason Bosco
02/06/2023, 5:23 PMDave Thomas (pragdave)
02/06/2023, 7:14 PMJason Bosco
02/06/2023, 8:37 PMDave Thomas (pragdave)
02/06/2023, 9:58 PMJason Bosco
02/06/2023, 10:00 PMJason Bosco
02/06/2023, 10:01 PMsort_by: _eval(book_id:<code>)
Dave Thomas (pragdave)
02/06/2023, 10:39 PMDave Thomas (pragdave)
02/06/2023, 10:40 PMsort_by: `_text_match:desc,_eval(code: "${book_code}"):desc`
Dave Thomas (pragdave)
02/06/2023, 10:40 PMDave Thomas (pragdave)
02/06/2023, 10:41 PMJason Bosco
02/06/2023, 10:42 PM