-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Query returning different results between DEV and PROD
PostPosted: Mon Jul 22, 2013 7:44 am 
Newbie

Joined: Fri Apr 16, 2010 5:41 pm
Posts: 3
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.