Class QueryParserUtil
This class defines utility methods to (help) parse query strings into Query objects.
Inheritance
Inherited Members
Assembly: Lucene.Net.QueryParser.dll
Syntax
[Serializable]
public sealed class QueryParserUtil
Methods
Name | Description |
---|---|
Escape(String) | Returns a string where those characters that TextParser expects to be
escaped are escaped by a preceding
|
Parse(String, String[], Occur[], Analyzer) | Parses a query, searching on the fields specified. Use this if you need to specify certain fields as required, and others as prohibited. Usage:
The code above would construct a query:
|
Parse(String[], String[], Analyzer) | Parses a query which searches on the fields specified. If x fields are specified, this effectively constructs:
|
Parse(String[], String[], Occur[], Analyzer) | Parses a query, searching on the fields specified. Use this if you need to specify certain fields as required, and others as prohibited. Usage:
The code above would construct a query:
|