Class ExtendableQueryParser
The Extendable
To guarantee that an extension field is processed with its associated extension, the extension query part must escape any special characters like '*' or '['. If the extension query contains any whitespace characters, the extension query part must be enclosed in quotes. Example ('_' used as separation character):
title_customExt:"Apache Lucene\?" OR content_customExt:prefix\*
Search on the default field:
_customExt:"Apache Lucene\?" OR _customExt:prefix\*
The Extendable
For details about the default encoding scheme see Extensions.
Inheritance
Implements
Inherited Members
Namespace: Lucene.Net.QueryParsers.Ext
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class ExtendableQueryParser : QueryParser, ICommonQueryParserConfiguration
Constructors
| Improve this Doc View SourceExtendableQueryParser(LuceneVersion, String, Analyzer)
Creates a new Extendable
Declaration
public ExtendableQueryParser(LuceneVersion matchVersion, string f, Analyzer a)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
matchVersion | the lucene version to use. |
System. |
f | the default query field |
Lucene. |
a | the analyzer used to find terms in a query string |
ExtendableQueryParser(LuceneVersion, String, Analyzer, Extensions)
Creates a new Extendable
Declaration
public ExtendableQueryParser(LuceneVersion matchVersion, string f, Analyzer a, Extensions ext)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
matchVersion | the lucene version to use. |
System. |
f | the default query field |
Lucene. |
a | the analyzer used to find terms in a query string |
Extensions | ext | the query parser extensions |
Properties
| Improve this Doc View SourceExtensionFieldDelimiter
Returns the extension field delimiter character.
Declaration
public virtual char ExtensionFieldDelimiter { get; }
Property Value
Type | Description |
---|---|
System. |
the extension field delimiter character. |
Methods
| Improve this Doc View SourceGetFieldQuery(String, String, Boolean)
Declaration
protected override Query GetFieldQuery(string field, string queryText, bool quoted)
Parameters
Type | Name | Description |
---|---|---|
System. |
field | |
System. |
queryText | |
System. |
quoted |
Returns
Type | Description |
---|---|
Lucene. |