简体   繁体   English

ArangoDB AQL LIKE函数不使用索引

[英]ArangoDB AQL LIKE function does not use indexes

Since the great devel version v2.7.0-rc1, we can use a like function. 从出色的开发版本v2.7.0-rc1开始,我们可以使用like函数。

That's awesome but how can one combine the new function with an index. 太棒了,但是如何将新功能与索引结合起来。 I have tried the hash, skip-list and the fulltext index but no one is used by the explain function. 我已经尝试了哈希,跳过列表和全文本索引,但explain函数没有使用任何人。

Any ideas? 有任何想法吗?

The Fulltext index can only be used in the fulltext() function. 全文索引只能在fulltext()函数中使用。 However, explain will not show you its using the index (its similar for geo indices) 但是,explain不会向您显示其使用索引的情况(与geo索引相似)

fulltext() can use indexes only for doing prefix matches and complete matches. fulltext()只能将索引用于进行前缀匹配和完全匹配。

As usual you should reduce your result set by other filters in advance. 与往常一样,您应该提前减少其他过滤器的结果集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM