簡體   English   中英

ArangoDB LIKE函數似乎無法過濾出包含“ *”的值

[英]ArangoDB LIKE function doesn't seem to filter out values containing '*'

名為“ PatternInfo”的集合包含以下文檔: 1. { "pattern": "abcde*fgh"} 2. { "pattern": "test*new" } 3. { "pattern": "abc%^def" }

每當運行以下查詢以過濾包含'*'的模式時,都會返回空結果。 for doc in PatternInfo filter like(doc.pattern, "%test*n%", false) return doc

我什至嘗試轉義'*',盡管LIKE的ArangoDB文檔只指定了'%'和'_'進行轉義。

查詢或ArangoDB本身有問題嗎?

LIKE()實現的LIKE()似乎存在一個錯誤。

在我的測試中,V8實現產生了預期的結果:

for doc in PatternInfo
filter noopt(v8(like(doc.pattern, "%test*n%", false)))
return doc

它與2. { "pattern": "test*new" }正確匹配。

我代表您創建了一個錯誤報告: https : //github.com/arangodb/arangodb/issues/4919

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM