What I'm trying to do is create an input field that, as you type, it will search for users who follow you, based on the typed username and/or name.
I'm trying to use SOLR because it's fast and I'm unable to use MySQL's LIKE feature, but I'm running into issues with the number of values that I can pass to the SOLR query (e.g. user_id:(1,2,3,5,etc)
). SOLR apparently has a limit on the number of values you can pass, and I need this solution to not be limited.
As of right now my SOLR index includes username
, name
, and user_id
. I was then passing a list of previously collected follower_ids
to the query.
Any ideas on how to make this work?
UPDATE: As suggested in the comments of increasing the # of OR clauses... this really isn't a good solution as it will cause future problems.