Is MongoDB a valid alternative to relational db + lucene?

后端 未结 10 862
醉酒成梦
醉酒成梦 2021-01-30 09:13

On a new project I need a hard use of lucene for a searcher implementation. This searcher will be a very important (and big) piece of the project. Is valid or convenient replaci

10条回答
  •  渐次进展
    2021-01-30 09:40

    MongoDb is an NOSQl, Lucene and SOLR are search engines, and adding another thing to the comparison is caches like Terracota along with EhCache. All have thier own purpose.

    If searching along with full text search is required with stemming, relevancy settings like showing results with text matching in product title ranking more than text matching in desctription, and many such text based features. Also ranking, relevancy, sound alike macthing, partial word matching etc etc . All this things are best handled by search based storage systems like SOLR and Lucene.

    If your criteria is fater retrieval only and you dont need your presentation data objects to be durable then simply use a cache lke Terracota.

    If you need faster retrieval and also need to colloborate and aggregate data in one datasource and also need that aggregated data to be durable then use NOSQL like Mongodb.

提交回复
热议问题