- is it possible the database was slightly different (i.e. updated) between the exact instants in which the two nodes have rebuilt the index?
A: no - the database is exactly the same (the same data source at the same time instance, which mean the same data)
- possibly any environment variable is different? Some encoders (FieldBridge and/or Analyzers, Hibernate types) are sensitive to System Timezone, platform language and string encoding settings.
A: no - we are using either standard analyzer or whitespace analyzer during indexing and querying respectively.
- same as above point, but check the settings of the DataSource, i.e. JDBC connection properties using the wrong string encoding. For example one might read strings in UTF-8 (recommended),
while the other will interpret Strings in some platform default.
A: no - have checked and re/verified this multiple times
- any Error logged during indexing? If a batch of documents failed, you might have a block of documents missing in one of the indexes (and this could happen several times).
By default errors are logged, you might want to hook up an ErrorHandler to raise a more serious notification to your admins - if logs are ignored.
A: [seems like we caught it] yes - there was an exception due to developer code (unrelated) - which used to occur after indexing reported 100% completion on the console logs - which we just fixed, and the result set for now seems identical on two different machines. thanks a lot for your inputs. i am *NOT* saying that the issue is fixed, waiting for more tests and further analysis. - you might have different Analyzers configured on the two nodes? Or different dependencies? Double check your deployed app and resources are identical on both machines.
A: no - exactly the same release/deployment/verison/code of the application that is running
for all of hibernate search community,
http://techilashots.blogspot.in/2016/06 ... e-54y.html hope this helps others too!