C# Class Lucene.Net.QueryParsers.Ext.ParserExtension

This class represents an extension base class to the Lucene standard Classic.QueryParser. The Classic.QueryParser is generated by the JavaCC parser generator. Changing or adding functionality or syntax in the standard query parser requires changes to the JavaCC source file. To enable extending the standard query parser without changing the JavaCC sources and re-generate the parser the ParserExtension can be customized and plugged into an instance of ExtendableQueryParser, a direct subclass of Classic.QueryParser.
显示文件 Open project: lcarli/PDFIndexer Class Usage Examples

Public Methods

Method Description
Parse ( Lucene.Net.QueryParsers.Ext.ExtensionQuery query ) : Query

Processes the given ExtensionQuery and returns a corresponding Query instance. Subclasses must either return a Query instance or raise a ParseException. This method must not return null.

Method Details

Parse() public abstract method

Processes the given ExtensionQuery and returns a corresponding Query instance. Subclasses must either return a Query instance or raise a ParseException. This method must not return null.
if the query can not be parsed.
public abstract Parse ( Lucene.Net.QueryParsers.Ext.ExtensionQuery query ) : Query
query Lucene.Net.QueryParsers.Ext.ExtensionQuery the extension query
return Query