I am currently working in search based on relevancy of keyword. I have customers and their following fields.
1. name
2. designation
3. address
.
...
When search is made with keyword "Computer Engineer" Then My search displays customers in following order of matching,
1. both keyword match
2. first keyword match
3. second keyword match
In this way, I can get the list of customers.
I want to use the customer_id
of search result list in other query like:
Model::whereIn('customer_id', $searchResultCustomerIds)->get();
There may be any number of customers in the search result based on no of customers in database. What is the maximum limit of size of array that can be used in eloquent whereIn
clause ?