本文介绍了Cassandra全文搜索像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个名为问题的列族,如下所示:
Questions = {

您是谁:{
用户名: user1
},什么答案是:{
用户名: user1
} ...
}

Let's say I have a column family named Questions like below:Questions = {
Who are you: { username: "user1" }, What is the answer: { username: "user1" }...}

如何搜索所有问题包含某些单词?
获取所有包含 what单词的问题。
如何使用python或至少使用Java?

How do I search for all the questions that contain certain words? Get all questions that contain 'what' word. How do I do it using python or at least Java?

推荐答案

Solandra()是Lucandra的新名称。

Solandra (https://github.com/tjake/Solandra) is the new name for Lucandra.

Solandra是Cassandra和Solr(基于Lucene全文搜索引擎)的组合。

Solandra is a combination of Cassandra and Solr (which is based on the Lucene full-text search engine).

尽管您可以通过创建二级索引列族(Google:cassandra二级索引)来实现一些基本的文本索引,但仅Cassandra并不能解决文本搜索问题。

Cassandra alone doesn't tackle text-search, although you could implement some basic text indexing by creating secondary index column families (Google: cassandra secondary index).

这篇关于Cassandra全文搜索像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 12:28