-->
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.  [ 4 posts ] 
Author Message
 Post subject: Query return nothing when MassIndexer running - any setting?
PostPosted: Sat Jan 21, 2017 7:13 pm 
Beginner
Beginner

Joined: Sun Aug 16, 2015 3:21 am
Posts: 27
Hi,

I am using HS (5.4.0).- With Infinispan 7_2_0 and JDBC CachStore.

Some important settings I have:

<!-- Hibernate Search configuration -->
<!-- ******************************* -->

<!-- ENABLE SEARCH -->
<prop key="hibernate.search.autoregister_listeners">true</prop>

<!-- MASTER -->
<prop key="hibernate.search.infinispan.configuration_resourcename">${INFINISPAN_CONFIG}</prop>
<prop key="hibernate.search.default.directory_provider">infinispan</prop>

<prop key="hibernate.search.default.exclusive_index_use">true</prop>
<prop key="hibernate.search.reader.strategy">shared</prop>

<!-- Controls the amount of documents buffered in memory during indexing. The bigger the more RAM is consumed. -->
<prop key="hibernate.search.default.indexwriter.max_buffered_docs">20</prop>
<prop key="hibernate.search.default.indexwriter.merge_factor">20</prop>
<prop key="hibernate.search.default.indexwriter.max_merge_docs">100</prop>

<!-- To be fairly confident no files grow above 5MB, use: -->
<prop key="hibernate.search.default.indexwriter.ram_buffer_size">6</prop>
<prop key="hibernate.search.default.indexwriter.merge_max_optimize_size">2</prop>
<prop key="hibernate.search.default.indexwriter.merge_max_size">2</prop>

<prop key="hibernate.search.worker.enlist_in_transaction">true</prop>
<prop key="hibernate.search.default.sharding_strategy.nbr_of_shard">5</prop>



All looks good apart from - while MassIndexer is running queries don't return anything. Once finished it does return all.

Am I missing some basics as I expect this to start returning results.

Any help would be greatly appreciated - Many many Thanks.


Top
 Profile  
 
 Post subject: Re: Query return nothing when MassIndexer running - any setting?
PostPosted: Fri Feb 24, 2017 1:10 pm 
Beginner
Beginner

Joined: Sun Aug 16, 2015 3:21 am
Posts: 27
I thought to answer from other conversations I had with Hibernate Team.

Quote:
During Mass Indexing Flush is disabled to boost up speed of indexing. It can flush while it is indexing but personally I haven't seen the code to configure flush control as such, might be we just need to wait and see. But that is the reason it is not recommended to search for things while mass indexing is in progress.


Hibernate Team -> Please correct if I am wrong to keep this thread with correct information. Thanks


Top
 Profile  
 
 Post subject: Re: Query return nothing when MassIndexer running - any setting?
PostPosted: Mon Feb 27, 2017 2:21 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
what you state is correct.

But I don't see any question, so not sure how to help you? Is there a problem?

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: Query return nothing when MassIndexer running - any setting?
PostPosted: Tue Feb 28, 2017 9:20 am 
Beginner
Beginner

Joined: Sun Aug 16, 2015 3:21 am
Posts: 27
Thanks.

Quote:
Situation was: While MassIndexer was running I was searching for data and it was returning nothing - when it finished mass indexing - Reader started returning results. I didn't know why this is the case??


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

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.