firdhana - 3 weeks ago

Hi All, I have entries stream with search. but result are empty. Already scout:import and streams:index but still now showing any result. any idea why?

Answer

ryanthompson - 3 weeks ago

If you are using entries(...).search(term) it's fuzzy but also uses weight in the overall amount of text the match is found in. You can do LIKE queries without the search method :-)

ryanthompson - 3 weeks ago

Can you show us some code? Is the stream searchable? This would be defined in the CP or via migration depending on where you made it.

firdhana - 3 weeks ago

it seems it has to be exact word. I was thought it will use LIKE query. am i right? because when i use full word, it show just right. related to search, are they any multiple stream search like old pyro do with CI? I am not very good at laravel, just learning now.

ryanthompson - 3 weeks ago

If you are using entries(...).search(term) it's fuzzy but also uses weight in the overall amount of text the match is found in. You can do LIKE queries without the search method :-)