FileDocCategorySizeDatePackage
TestSpanExplanations.javaAPI DocApache Lucene 2.1.05556Wed Feb 14 10:46:34 GMT 2007org.apache.lucene.search.spans

TestSpanExplanations

public class TestSpanExplanations extends TestExplanations
TestExplanations subclass focusing on span queries

Fields Summary
Constructors Summary
Methods Summary
public voidtestSF1()

    SpanQuery q = sf(("w1"),1);
    qtest(q, new int[] {0,1,2,3});
  
public voidtestSF2()

    SpanQuery q = sf(("w1"),1);
    q.setBoost(1000);
    qtest(q, new int[] {0,1,2,3});
  
public voidtestSF4()

    SpanQuery q = sf(("xx"),2);
    qtest(q, new int[] {2});
  
public voidtestSF5()

    SpanQuery q = sf(("yy"),2);
    qtest(q, new int[] { });
  
public voidtestSF6()

    SpanQuery q = sf(("yy"),4);
    q.setBoost(1000);
    qtest(q, new int[] {2});
  
public voidtestSNear1()

    SpanQuery q = snear("w1","QQ",100,true);
    qtest(q, new int[] {});
  
public voidtestSNear10()

    SpanQuery q = snear("xx","w1","w2",0,false);
    qtest(q, new int[] {2});
  
public voidtestSNear11()

    SpanQuery q = snear("w1","w2","w3",1,true);
    qtest(q, new int[] {0,1});
  
public voidtestSNear2()

    SpanQuery q = snear("w1","xx",100,true);
    qtest(q, new int[] {2,3});
  
public voidtestSNear3()

    SpanQuery q = snear("w1","xx",0,true);
    qtest(q, new int[] {2});
  
public voidtestSNear4()

    SpanQuery q = snear("w1","xx",1,true);
    qtest(q, new int[] {2,3});
  
public voidtestSNear5()

    SpanQuery q = snear("xx","w1",0,false);
    qtest(q, new int[] {2});
  
public voidtestSNear6()

    SpanQuery q = snear("w1","w2","QQ",100,true);
    qtest(q, new int[] {});
  
public voidtestSNear7()

    SpanQuery q = snear("w1","xx","w2",100,true);
    qtest(q, new int[] {2,3});
  
public voidtestSNear8()

    SpanQuery q = snear("w1","xx","w2",0,true);
    qtest(q, new int[] {2});
  
public voidtestSNear9()

    SpanQuery q = snear("w1","xx","w2",1,true);
    qtest(q, new int[] {2,3});
  
public voidtestSNot1()

    SpanQuery q = snot(sf("w1",10),st("QQ"));
    qtest(q, new int[] {0,1,2,3});
  
public voidtestSNot10()

    SpanQuery t = st("xx");
    t.setBoost(10000);
    SpanQuery q = snot(snear("w1","w3",10,true), t);
    qtest(q, new int[] {0,1,3});
  
public voidtestSNot2()

    SpanQuery q = snot(sf("w1",10),st("QQ"));
    q.setBoost(1000);
    qtest(q, new int[] {0,1,2,3});
  
public voidtestSNot4()

    SpanQuery q = snot(sf("w1",10),st("xx"));
    qtest(q, new int[] {0,1,2,3});
  
public voidtestSNot5()

    SpanQuery q = snot(sf("w1",10),st("xx"));
    q.setBoost(1000);
    qtest(q, new int[] {0,1,2,3});
  
public voidtestSNot7()

    SpanQuery f = snear("w1","w3",10,true);
    f.setBoost(1000);
    SpanQuery q = snot(f, st("xx"));
    qtest(q, new int[] {0,1,3});
  
public voidtestSO1()

    SpanQuery q = sor("w1","QQ");
    qtest(q, new int[] {0,1,2,3});
  
public voidtestSO2()

    SpanQuery q = sor("w1","w3","zz");
    qtest(q, new int[] {0,1,2,3});
  
public voidtestSO3()

    SpanQuery q = sor("w5","QQ","yy");
    qtest(q, new int[] {0,2,3});
  
public voidtestSO4()

    SpanQuery q = sor("w5","QQ","yy");
    qtest(q, new int[] {0,2,3});
  
public voidtestST1()

    SpanQuery q = st("w1");
    qtest(q, new int[] {0,1,2,3});
  
public voidtestST2()

    SpanQuery q = st("w1");
    q.setBoost(1000);
    qtest(q, new int[] {0,1,2,3});
  
public voidtestST4()

    SpanQuery q = st("xx");
    qtest(q, new int[] {2,3});
  
public voidtestST5()

    SpanQuery q = st("xx");
    q.setBoost(1000);
    qtest(q, new int[] {2,3});