My Java EE application uses Lucene 4. In Lucene index I have full name of 10 millions peoples. When I use search, Lucene returns different results. Same app works fine in development environment on Windows, test environment on AIX, but on production server Lucene search returns much less records. Same query returns 800 results in development and 20 results on production. We'll try AIX and Red Hat on production, but still no luck.
I copied Lucene index files from production to development environment, and has searched same query with same application: in my environment all works fine, there is 800 results. I start app with debug, copied Lucene query as text and use this query with Luke in my environment - have 800 results. There is high load on production, I'll try to load development environment, but Lucene works stable and always return 800.
Where to find the source of the problem?