如何使用AWS Neptune作为源实施全文搜索 [英] How to implement full text search using AWS Neptune as the source

查看:157
本文介绍了如何使用AWS Neptune作为源实施全文搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在其他问题上,我还看到了Gremlin&海王星本身不支持全文搜索。

I've seen on other questions that Gremlin & Neptune do not support full text search natively.

如何在我的网站中提供此功能?

How can I provide this feature as part of my web-site?

理想情况下,不需要运行更多我需要照顾的基础架构/软件。

Ideally it would be not require running up more infrastructure/software that I have to look after.

认为某些选项正在使用外部搜索服务,例如Solr或ElasticSearch。那另一个AWS服务呢?

Thinking that some options are using an external search service like Solr or ElasticSearch. What about another AWS service? Cloudsearch?

谢谢

推荐答案

您的问题非常及时。 Amazon Neptune和ElasticSearch之间的集成才刚刚启动[1]。当您向图表中添加数据时,Neptune将使用流功能自动使ElasticSearch索引保持最新。这在方法上与您正在考虑构建的方法相似,但是具有更多的优势,即您可以直接从图形查询访问索引,而无需编写先调用索引然后调用Neptune的包装器代码。您可以在Gremlin和/或SPARQL查询中使用ElasticSearch索引,只需在查询中包含一些魔术字符串即可,这些字符串将告诉Neptune使用ElasticSearch索引而不是其自身的内部索引。您可以控制给定的Gremlin / SPARQL查询应使用哪种ElasticSearch查询API。同一链接[1]中包含有关如何设置环境的说明,该说明不会花费很长时间。希望这会对您的用例有所帮助。附带说明一下,该功能的另一个好处是,在使用Gremlin时,您无需经过特殊修改的客户端库即可利用这些新功能。

Your question is very timely. Integration between Amazon Neptune and ElasticSearch was just launched [1]. As you add data to a graph, Neptune will automatically keep an ElasticSearch index up to date using the Streams feature. This is similar in approach to what you were considering building but with the added advantage that you can access the index directly from your graph queries rather than needing to write wrapper code that calls the index and then calls Neptune. You can use the ElasticSearch index in your Gremlin and/or SPARQL queries by simply including some "magic" strings in the query that will tell Neptune to use the ElasticSearch index rather than its own internal indices. You have control over things like which ElasticSearch query API a given Gremlin/SPARQL query should use. Instructions on how to setup the environment, which does not take long are included at the same link [1]. Hopefully this will help with your use case. As a side note, another benefit of the feature is that, when working with Gremlin, you do not need a specially modified client library to take advantage of these new capabilities.

[1] https://docs.aws.amazon.com/neptune/latest/userguide/full-text-search.html

这篇关于如何使用AWS Neptune作为源实施全文搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆