-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Search - Loading database from index
PostPosted: Fri Sep 25, 2009 3:52 pm 
Newbie

Joined: Fri Sep 25, 2009 3:45 pm
Posts: 1
Hi,
I am creating search site. I have more than 9 million data to store and index. So I want to use hibernate search to index it in my personal computer THAN move it to my remote computer site.

Questions:
- When I index my data creating the index directory and storing the data in my local database, is there a way to move ONLY the index files to the remote site and then start any (remote) application that would load the index information to the (remote) database?
- Or should I move a database backup from my personal computer to the remote site and then create the index there?
- Or should I move both database backup AND index directory and then start the site?

Regards!
André


Top
 Profile  
 
 Post subject: Re: Hibernate Search - Loading database from index
PostPosted: Sat Sep 26, 2009 8:03 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Quote:
So I want to use hibernate search to index it in my personal computer THAN move it to my remote computer site.

It will take some time to index a huge amount of data, you'll have to have a powerful personal computer.

Quote:
When I index my data creating the index directory and storing the data in my local database, is there a way to move ONLY the index files to the remote site and then start any (remote) application that would load the index information to the (remote) database?

Index is not stored in the database, you can just copy over the produced files to another system, just make sure that the databases are equal. There is no need to index the data while storing stuff in your local database, you can restore a dump locally and then use index() API in Hibernate Search to rebuild the index only. See the mass indexing chapters for hints and finetuning.

Quote:
Or should I move a database backup from my personal computer to the remote site and then create the index there?

You remote computer will need the database as well (In most scenarios, and otherwise there's no point in using Hibernate Search as you could be using just Lucene as well), and having it rebuild the index for you is often preferred: you're sure the db is the same and you have less data to transfer.
You might want a local copy of the index for debugging, but most of the time for debugging it's good enough to have a subset of all the data (and relative subset of the index).

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.