I'm seeing strange behaviour with my Hibernate Search functionality.
I'm new to using Hibernate Search (but not Hibernate in general), and I can't figure out why I'm getting two different result sets from the same search done in my DEV and PROD environments.
The details of my setup can be found here: http://stackoverflow.com/questions/17582665/hibernate-search-behaves-differently-between-dev-and-prod-with-same-databse
I have one domain object that needs to be indexed by Hibernate Search. When I do a FullTextQuery on this object on my DEV machine, I get the expected results. I then deploy the app to a WAR and explode it to my PROD server (a VPS). When I perform the same "search" on my PROD machine, I don't get the expected results at all (it seems like some/all results are missing for a particular Foreign ID).
For example, when I run a search on the FAQs for customer_id 1 in PROD, I get the expected results. When I run a search on customer_id 3 in PROD, I get the expected results... but when I run a search on the FAQs for customer_id 2, I pretty much get NO hits whatsoever in PROD (but in DEV, I get a whole bunch of hits, which is expected).
The only difference I can note between customer_id 1, 2 and 3 is that I have MORE FAQs for customer_id 2 than any other customer, and there are some repeated answers for customer_id 2. This information may be irrelevant, but I'm just trying to give a nice clear picture of this problem.
I've run LUKE to ensure that everything was properly indexed, and it appears that everything is where it should be... I'm new to Hibernate Search, so any help would be appreciated.
|