Skip to content

Commit 26e0a15

Browse files
authored
Merge pull request #606 from NYPL/NOREF/bnf-exclude-query-term-parentheses
Noref/bnf exclude query term parentheses
2 parents c784247 + 39c0920 commit 26e0a15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/elasticsearch/cql_grammar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ const cql = `
77
atomic_query ::= scope " " relation " " key | key
88
scope ::= "title" | "contributor" | "keyword" | "callNumber" | "identifier" | "subject" | "language" | "date" | "center" | "format"
99
relation ::= "any" | "adj" | "=" | "==" | "within" | "encloses"
10-
key ::= NON_WS_KEY | '"' KEYPHRASE '"'
11-
KEYPHRASE ::= [^"]+
12-
NON_WS_KEY ::= [^#x20#x09#x0A#x0D"]+
10+
key ::= non_ws_key | '"' keyphrase '"'
11+
keyphrase ::= [^"]+
12+
non_ws_key ::= [^#x20#x09#x0A#x0D"()]+
1313
`
1414

1515
const cqlParser = new Grammars.W3C.Parser(cql)

0 commit comments

Comments
 (0)