You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Rider Carrion Cleger <ri...@gmail.com> on 2013/05/14 10:35:30 UTC

lucene and mongodb

Hi team,
I'm working with apache lucene 4.2.1 and I would like to store lucene index
in a NoSql database.
So my questions are,
- Can I store the lucene index in a mongodb database ?

thanks you team!

Re: lucene and mongodb

Posted by Adrien Grand <jp...@gmail.com>.
Hi,

On Tue, May 14, 2013 at 1:34 PM, Rider Carrion Cleger
<ri...@gmail.com> wrote:
> So, can I have for sure scalability and safety with a  distribution on top
> of Lucene like Solr ?

Yes, Solr can help you shard your index and add replicas, see
http://wiki.apache.org/solr/SolrCloud.

-- 
Adrien

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: lucene and mongodb

Posted by Rider Carrion Cleger <ri...@gmail.com>.
Thank you Adrien.
I did not think about index's scalability but a safe place to store them
(like a SGBD relation... or NoSql).
So, can I have for sure scalability and safety with a  distribution on top
of Lucene like Solr ?



On Tue, May 14, 2013 at 11:08 AM, Adrien Grand <jp...@gmail.com> wrote:

> Hi,
>
> On Tue, May 14, 2013 at 10:35 AM, Rider Carrion Cleger
> <ri...@gmail.com> wrote:
> > - Can I store the lucene index in a mongodb database ?
>
> I don't know whether it's possible, but even if it was, I would not
> recommend it. Lucene works best on local filesystems, and even better
> if the disk is an SSD. If your intention was to rely on MongoDB to
> scale the index, it is better to handle distribution on top of Lucene,
> similarly to Solr and Elasticsearch, rather than writing distributed
> implementations of org.apache.lucene.store.Directory.
>
> --
> Adrien
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: lucene and mongodb

Posted by Adrien Grand <jp...@gmail.com>.
Hi,

On Tue, May 14, 2013 at 10:35 AM, Rider Carrion Cleger
<ri...@gmail.com> wrote:
> - Can I store the lucene index in a mongodb database ?

I don't know whether it's possible, but even if it was, I would not
recommend it. Lucene works best on local filesystems, and even better
if the disk is an SSD. If your intention was to rely on MongoDB to
scale the index, it is better to handle distribution on top of Lucene,
similarly to Solr and Elasticsearch, rather than writing distributed
implementations of org.apache.lucene.store.Directory.

--
Adrien

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: lucene and mongodb

Posted by Jack Krupansky <ja...@basetechnology.com>.
That was tried with Lucandra/Solandra, which stored the Lucene index in 
Cassandra, but was less than optimal, so that model was discarded in favor 
of indexing Cassandra data directly into Solr/Lucene, side-by-side in each 
Cassandra node, but in native Lucene. The latter approach is now available 
from DataStax as DataStax Enterprise (DSE), which also integrates Hadoop. 
DSE provides the best of Cassandra integrated tightly with the best of Solr.

In DSE, Cassandra takes care of all the cluster management, with Solr 
indexing the local Cassandra data, handing off incoming updates to Cassandra 
for normal Cassandra storage, and using a variation of the normal Solr code 
for distributing queries and merging results from other nodes, but depending 
on Cassandra for information about cluster configuration.

(Note: I had proposed to talk in more detail about the above at Lucene 
Revolution, but my proposal was not accepted.)

See:
http://www.datastax.com/what-we-offer/products-services/datastax-enterprise

As it says, "DataStax Enterprise is completely free for development work."

-- Jack Krupansky

-----Original Message----- 
From: Rider Carrion Cleger
Sent: Tuesday, May 14, 2013 4:35 AM
To: java-user-info@lucene.apache.org ; java-user-faq@lucene.apache.org ; 
java-user@lucene.apache.org
Subject: lucene and mongodb

Hi team,
I'm working with apache lucene 4.2.1 and I would like to store lucene index
in a NoSql database.
So my questions are,
- Can I store the lucene index in a mongodb database ?

thanks you team! 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org