Zoekt syntax not behaving as expected
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
hello @dgruzd
I am testing out zoekt syntax and I am not understanding some of the results. I believe AND operator is not behaving itself. Let me show some examples:
search term import antlr_grammar Here the AND operator should be in play:

It seems the AND is not working as I expect because some lines contain only 1 keyword.
NOT also seems strange, antlr_grammar -import yields zero results but should yield several such as antlr_grammar.optionsSpec.parseString(text) #@UndefinedVariable also seen in the above screenshot.
Am I misunderstanding what the class foo query is doing? Is it perhaps looking in the whole file rather than line by line? using regex directly is behaving like I am expecting, so maybe it is just a documentation issue in how the AND and/or OR operators are presented?
Thanks for your help to understand this apparent discrepancy.
Best wishes,
Sean
