CloudSpanner支持模糊搜索或通配符搜索吗?

huangapple go评论70阅读模式
英文:

Does CloudSpanner support Fuzzy Search or Wild Card Search?

问题

我正在为工作的一个尖峰项目进行有关CloudSpanner的研究,并将其与BigTable/Elastic Search进行比较。我的团队希望找出CloudSpanner是否支持模糊搜索(FuzzySearch)和/或通配符查询(WildCard query)。我在文章中和观看YouTube直播演示中都找不到相关信息,而且我也无法访问演示/免费试用。我知道CloudSpanner使用NewSQL,但我也找不到有关NewSQL是否支持这些功能的信息。

英文:

I'm doing research on CloudSpanner as part of a spike for work, and comparing it to BigTable/Elastic Search. My team wanted to find out whether or not CloudSpanner supports either FuzzySearch and/or WildCard query. I could find this neither in articles nor by viewing youtube live demos, and i can't access a demo/free trial either. I know that CloudSpanner utilizes NewSQL but I couldn't find anything on NewSQL supporting those either.

答案1

得分: 1

Cloud Spanner不直接支持模糊搜索,据我所知,它也不直接支持通配符查询。

它支持的最相似的功能是:

正则表达式:

使用函数REGEXP_CONTAINS,您可以执行带有匹配所需内容的正则表达式查询。这允许查找[úuü],以查找所有u的替代项。

LIKE运算符

LIKE运算符允许您匹配字符串的一部分。要查看它的文档,您可以在这里查看。

如果这些替代方法都不适用于您,那么我建议您尝试像这样的方法

英文:

Cloud Spanner doesn't support FuzzySearch directly and as far as I know it does not support WildCard Queries directly.

the most similar things that it supports that can work for you are:

Regular Expressions:

With the function REGEXP_CONTAINS with which you can perform queries with a regular expression that matches what you want. This allows to look for [úuü] looks for all the alternatives of u.

LIKE Operator

The like operator will allow you to match a section of a string. to see it documentation you can check it here

If none of this alternatives work for you then i would suggest to do something like this

答案2

得分: -2

Yes, Cloud Spanner支持一些SQL查询的通配符(请参阅文档)。

https://cloud.google.com/spanner/docs/query-syntax

英文:

Yes, Cloud Spanner supports wild cards for some SQL queries (see documentation).

https://cloud.google.com/spanner/docs/query-syntax

huangapple
  • 本文由 发表于 2020年1月4日 00:56:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/59582388.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定