So i'm working a little search tool for a website but I ran into an little issue, when I enter a word and if this word is present it will return the results, but when i search on this word and add a extra character to it wil not return any results.
When I search on the word 'tool' it will return the results as this word is present in the DB, but when I search on 'tools' it will not return anything, as tools is not present in the DB.
- word present in DB = 'tool'
- search in DB with word 'tool' = returns results
- search in DB with word 'tools' = returns noting as tools is not present
When I search on the word 'tools' it should also return any results that matches with 'tool'
$query->andFilterWhere([
'or',
['like', 'product.name', $this->searchValue],
['like', 'product.desc', $this->searchValue],
]);