I am using the sunspot gem for searching functionality in my project. However, re-indexing in Solr is causing problems. When I re-index Solr on my local machine, the data is re-indexed properly but it not giving me the proper results when executing searches.
But with the same codebase and db setup on the server, the search returns the proper result.
I cannot find a solution as to why this is happening. Is there any limitation for re-indexing data?