Tuesday, April 4, 2017

Laravel Scout -

I'm using Laravel Scout with TNTSearch Engine at it's works fine but with one little problem. I have records:

| ID      | Name     |
+---------+----------+
| 9030100 | Car      |
| 9030150 | Car2     |
| 9030200 | Radio    |

And here is my query:

CatalogProducts::search( $query )->paginate( 15 );

When I'm looking 'car', it's returning all records with 'car' in name

When I'm looking '9030100', it's returning product 'Car'

But when I'm looking for '9030' I don't have any results and here is question - why?

How to fix it?



via Vertisan

Advertisement