use of com.yahoo.prelude.query.SuffixItem in project vespa by vespa-engine.
the class ParseTestCase method testSuffixAndWordTerms.
@Test
public void testSuffixAndWordTerms() {
Item root = tester.assertParsed("OR foo *suffix bar", "foo *suffix bar", Query.Type.ANY);
assertTrue(((OrItem) root).getItem(1) instanceof SuffixItem);
}
use of com.yahoo.prelude.query.SuffixItem in project vespa by vespa-engine.
the class ParseTestCase method testSuffixExtraSpace.
@Test
public void testSuffixExtraSpace() {
Item root = tester.assertParsed("*suffix", "* suffix", Query.Type.ANY);
assertTrue(root instanceof SuffixItem);
}
use of com.yahoo.prelude.query.SuffixItem in project vespa by vespa-engine.
the class ParseTestCase method testSuffixWithWeight.
@Test
public void testSuffixWithWeight() {
Item root = tester.assertParsed("*suffix!200", "*suffix!200", Query.Type.ANY);
assertTrue(root instanceof SuffixItem);
}
use of com.yahoo.prelude.query.SuffixItem in project vespa by vespa-engine.
the class ParseTestCase method testIndexedSuffix.
@Test
public void testIndexedSuffix() {
Item root = tester.assertParsed("foo.bar:*suffix", "foo.bar:*suffix", Query.Type.ANY);
assertTrue(root instanceof SuffixItem);
}
use of com.yahoo.prelude.query.SuffixItem in project vespa by vespa-engine.
the class ParseTestCase method testSuffixExtraStar.
@Test
public void testSuffixExtraStar() {
Item root = tester.assertParsed("*suffix", "**suffix", Query.Type.ANY);
assertTrue(root instanceof SuffixItem);
}
Aggregations