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

Formatter produces error when using full-text index #93

Open
Dimibe opened this issue Apr 29, 2024 · 0 comments
Open

Formatter produces error when using full-text index #93

Dimibe opened this issue Apr 29, 2024 · 0 comments

Comments

@Dimibe
Copy link

Dimibe commented Apr 29, 2024

Hello,

I came across the problem that I use a full-text index search (db.index.fulltext.queryNodes) in my query.
The function returns a node and score variable, e.g.

CALL db.index.fulltext.queryNodes('userNames', ('*' + $text + '*')) YIELD node AS user, score

The problem is that the formatter of this plugin identifies the word node as a keyword and reformats the code to:

CALL db.index.fulltext.queryNodes('userNames', ('*' + $text + '*')) YIELD NODE AS user, score

With that, the query throws an exception because the variable must be named node and not NODE.
Would it be possible to not reformat the word node to uppercase?

See also: Full-text indexes

Thanks in advance.

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

No branches or pull requests

1 participant