Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6.3版本REGEXP有问题 #972

Open
ZQbd opened this issue Sep 10, 2019 · 4 comments
Open

6.3版本REGEXP有问题 #972

ZQbd opened this issue Sep 10, 2019 · 4 comments

Comments

@ZQbd
Copy link

@ZQbd ZQbd commented Sep 10, 2019

sql如下:select * from testreg where text.keyword <> REGEXP("?")
翻译的dsl如下:可以看到翻译的dsl是must,应该是must_not才对
{
"from": 0,
"size": 200,
"query": {
"bool": {
"filter": [
{
"bool": {
"must": [
{
"regexp": {
"text.keyword": {
"value": "?",
"flags_value": 65535,
"max_determinized_states": 10000,
"boost": 1
}
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
}
}

@ZQbd
Copy link
Author

@ZQbd ZQbd commented Sep 10, 2019

@shi-yuan
Copy link
Member

@shi-yuan shi-yuan commented Sep 15, 2019

已经在这儿,修了哈:
f8ee5b6

@ZQbd
Copy link
Author

@ZQbd ZQbd commented Sep 16, 2019

已经在这儿,修了哈:
f8ee5b6

这个插件,高本版的兼容低版本吗,我es是6.3的,用6.6的插件有没有问题

@shi-yuan
Copy link
Member

@shi-yuan shi-yuan commented Oct 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.