FileDocCategorySizeDatePackage
ReutersQueries.javaAPI DocApache Lucene 2.1.02352Wed Feb 14 10:46:14 GMT 2007org.apache.lucene.benchmark.standard

ReutersQueries

public class ReutersQueries extends Object

Fields Summary
public static String[]
STANDARD_QUERIES
Constructors Summary
Methods Summary
public static org.apache.lucene.search.Query[]getPrebuiltQueries(java.lang.String field)


        
    
        //be wary of unanalyzed text
        return new Query[]{
                new SpanFirstQuery(new SpanTermQuery(new Term(field, "ford")), 5),
                new SpanNearQuery(new SpanQuery[]{new SpanTermQuery(new Term(field, "night")), new SpanTermQuery(new Term(field, "trading"))}, 4, false),
                new SpanNearQuery(new SpanQuery[]{new SpanFirstQuery(new SpanTermQuery(new Term(field, "ford")), 10), new SpanTermQuery(new Term(field, "credit"))}, 10, false),
                new WildcardQuery(new Term(field, "fo*")),
        };