FileDocCategorySizeDatePackage
GDataQueryParser.javaAPI DocApache Lucene 2.1.01982Wed Feb 14 10:46:06 GMT 2007org.apache.lucene.gdata.search.query

GDataQueryParser

public class GDataQueryParser extends QueryParser
author
Simon Willnauer

Fields Summary
Constructors Summary
public GDataQueryParser(String field, Analyzer analyzer)
Creates a new QueryParser instance and sets the default operator to {@link Operator#AND}

param
field - the parser field
param
analyzer - the parser analyzer

        super(field, analyzer);
        this.setDefaultOperator(Operator.AND);
    
public GDataQueryParser(org.apache.lucene.gdata.search.config.IndexSchema schema)
Creates a new QueryParser instance and sets the default operator to {@link Operator#AND}. The parser will use {@link IndexSchema#getDefaultSearchField} as the field and {@link IndexSchema#getSchemaAnalyzer()} as the analyzer.

param
schema - the schema to set the default fields

        this(schema.getDefaultSearchField(), schema.getSchemaAnalyzer());

    
Methods Summary