TestSpanExplanationspublic class TestSpanExplanations extends TestExplanations TestExplanations subclass focusing on span queries |
Methods Summary |
---|
public void | testSF1()
SpanQuery q = sf(("w1"),1);
qtest(q, new int[] {0,1,2,3});
| public void | testSF2()
SpanQuery q = sf(("w1"),1);
q.setBoost(1000);
qtest(q, new int[] {0,1,2,3});
| public void | testSF4()
SpanQuery q = sf(("xx"),2);
qtest(q, new int[] {2});
| public void | testSF5()
SpanQuery q = sf(("yy"),2);
qtest(q, new int[] { });
| public void | testSF6()
SpanQuery q = sf(("yy"),4);
q.setBoost(1000);
qtest(q, new int[] {2});
| public void | testSNear1()
SpanQuery q = snear("w1","QQ",100,true);
qtest(q, new int[] {});
| public void | testSNear10()
SpanQuery q = snear("xx","w1","w2",0,false);
qtest(q, new int[] {2});
| public void | testSNear11()
SpanQuery q = snear("w1","w2","w3",1,true);
qtest(q, new int[] {0,1});
| public void | testSNear2()
SpanQuery q = snear("w1","xx",100,true);
qtest(q, new int[] {2,3});
| public void | testSNear3()
SpanQuery q = snear("w1","xx",0,true);
qtest(q, new int[] {2});
| public void | testSNear4()
SpanQuery q = snear("w1","xx",1,true);
qtest(q, new int[] {2,3});
| public void | testSNear5()
SpanQuery q = snear("xx","w1",0,false);
qtest(q, new int[] {2});
| public void | testSNear6()
SpanQuery q = snear("w1","w2","QQ",100,true);
qtest(q, new int[] {});
| public void | testSNear7()
SpanQuery q = snear("w1","xx","w2",100,true);
qtest(q, new int[] {2,3});
| public void | testSNear8()
SpanQuery q = snear("w1","xx","w2",0,true);
qtest(q, new int[] {2});
| public void | testSNear9()
SpanQuery q = snear("w1","xx","w2",1,true);
qtest(q, new int[] {2,3});
| public void | testSNot1()
SpanQuery q = snot(sf("w1",10),st("QQ"));
qtest(q, new int[] {0,1,2,3});
| public void | testSNot10()
SpanQuery t = st("xx");
t.setBoost(10000);
SpanQuery q = snot(snear("w1","w3",10,true), t);
qtest(q, new int[] {0,1,3});
| public void | testSNot2()
SpanQuery q = snot(sf("w1",10),st("QQ"));
q.setBoost(1000);
qtest(q, new int[] {0,1,2,3});
| public void | testSNot4()
SpanQuery q = snot(sf("w1",10),st("xx"));
qtest(q, new int[] {0,1,2,3});
| public void | testSNot5()
SpanQuery q = snot(sf("w1",10),st("xx"));
q.setBoost(1000);
qtest(q, new int[] {0,1,2,3});
| public void | testSNot7()
SpanQuery f = snear("w1","w3",10,true);
f.setBoost(1000);
SpanQuery q = snot(f, st("xx"));
qtest(q, new int[] {0,1,3});
| public void | testSO1()
SpanQuery q = sor("w1","QQ");
qtest(q, new int[] {0,1,2,3});
| public void | testSO2()
SpanQuery q = sor("w1","w3","zz");
qtest(q, new int[] {0,1,2,3});
| public void | testSO3()
SpanQuery q = sor("w5","QQ","yy");
qtest(q, new int[] {0,2,3});
| public void | testSO4()
SpanQuery q = sor("w5","QQ","yy");
qtest(q, new int[] {0,2,3});
| public void | testST1()
SpanQuery q = st("w1");
qtest(q, new int[] {0,1,2,3});
| public void | testST2()
SpanQuery q = st("w1");
q.setBoost(1000);
qtest(q, new int[] {0,1,2,3});
| public void | testST4()
SpanQuery q = st("xx");
qtest(q, new int[] {2,3});
| public void | testST5()
SpanQuery q = st("xx");
q.setBoost(1000);
qtest(q, new int[] {2,3});
|
|