use of de.ids_mannheim.korap.query.wrap.SpanAlterQueryWrapper in project Krill by KorAP.
the class TestSpanSegmentAlterQuery method spanAlterQuery3.
@Test
public void spanAlterQuery3() throws QueryException {
SpanAlterQueryWrapper ssaquery = new SpanAlterQueryWrapper("field");
ssaquery.or("b").or("c").or("d");
assertEquals("spanOr([field:b, field:c, field:d])", ssaquery.toQuery().toString());
}
use of de.ids_mannheim.korap.query.wrap.SpanAlterQueryWrapper in project Krill by KorAP.
the class TestSpanSegmentAlterQuery method spanAlterQuery5.
@Test
public void spanAlterQuery5() throws QueryException {
SpanRegexQueryWrapper srequery = new SpanRegexQueryWrapper("field", "a[bc]d.?e");
SpanAlterQueryWrapper ssaquery = new SpanAlterQueryWrapper("field");
ssaquery.or("f").or(srequery).or("g");
assertEquals("spanOr([field:f, SpanMultiTermQueryWrapper(field:/a[bc]d.?e/), field:g])", ssaquery.toQuery().toString());
}
use of de.ids_mannheim.korap.query.wrap.SpanAlterQueryWrapper in project Krill by KorAP.
the class TestSpanSegmentAlterQuery method spanAlterQuery.
@Test
public void spanAlterQuery() throws QueryException {
SpanAlterQueryWrapper ssaquery = new SpanAlterQueryWrapper("field");
ssaquery.or("b");
assertEquals("field:b", ssaquery.toQuery().toString());
}
Aggregations