folded-ear / gobrennas-api

HTTP API for gobrennas.com
https://gobrennas.com
MIT License
1 stars 0 forks source link

use prefix matching for unquoted search terms #40

Closed barneyb closed 6 months ago

barneyb commented 6 months ago

For unquoted search terms, use prefix matching. So chi will match chicken. It's not the same as a LIKE '%chi%', in that it's still using the stemmed indexed lexemes to match on, and it's prefix-only. More concretely, chi will not match enchiladas, because the search is not a prefix as it is with chicken. So better, but perhaps not sufficient.