mirror of https://github.com/apache/lucene.git
LUCENE-792: add test for PrecedenceQueryParser NOT bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1063478 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dfb9a0faf8
commit
a4a913d01b
|
@ -567,6 +567,12 @@ public class TestPrecedenceQueryParser extends LuceneTestCase {
|
|||
// too many boolean clauses, so ParseException is expected
|
||||
}
|
||||
}
|
||||
|
||||
// LUCENE-792
|
||||
public void testNOT() throws Exception {
|
||||
Analyzer a = new MockAnalyzer(MockTokenizer.WHITESPACE, false);
|
||||
assertQueryEquals("NOT foo AND bar", a, "-foo +bar");
|
||||
}
|
||||
|
||||
/**
|
||||
* This test differs from the original QueryParser, showing how the precedence
|
||||
|
|
Loading…
Reference in New Issue