Class QueryParserMessages
A strongly-typed resource class, for looking up localized strings, etc.
The localized resources can be replaced by end users by calling the SetResourceProvider(IResourceProvider) method and supplying an instance of QueryParserResourceProvider with custom ResourceManager instances provided in its constructor.QueryParserMessages.SetResourceProvider(new QueryParserResourceProvider(SomeResource.ResourceManager, SomeOtherResource.ResourceManager));
SomeResource
and SomeOtherResource
are auto-generated designer classes which can be generated by Visual Studio when adding
resource files (.resx) to a project. These resources can optionally be localized in different cultures and optionally be distributed as satellite
assemblies. See the ResourceManager documentation for tips on how to get started, but do note this is a broad topic.
QueryParserResourceProvider makes no assumptions on the method used to generate or deploy resources, the only requirement is that you provide
a ResourceManager that can find them. Note that it is also possible to subclass QueryParserResourceProvider
or implement Lucene.Net.Util.IResourceProvider directly to provide resources from any source.
Inherited Members
Namespace: Lucene.Net.QueryParsers.Flexible.Core.Messages
Assembly: Lucene.Net.QueryParser.dll
Syntax
public static class QueryParserMessages
Properties
ARGUMENT_CANNOT_BE_NULL
Looks up a localized string similar to Value cannot be null..
Declaration
public static string? ARGUMENT_CANNOT_BE_NULL { get; }
Property Value
Type | Description |
---|---|
string |
COULD_NOT_PARSE_NUMBER
Looks up a localized string similar to Could not parse text "{0}" using {1}.
Declaration
public static string? COULD_NOT_PARSE_NUMBER { get; }
Property Value
Type | Description |
---|---|
string |
Culture
Overrides the current thread's CurrentUICulture property for all resource lookups using this strongly typed resource class.
Declaration
public static CultureInfo? Culture { get; set; }
Property Value
Type | Description |
---|---|
CultureInfo |
EMPTY_MESSAGE
Looks up a localized string similar to .
Declaration
public static string? EMPTY_MESSAGE { get; }
Property Value
Type | Description |
---|---|
string |
INVALID_SYNTAX
Looks up a localized string similar to Syntax Error: {0}.
Declaration
public static string? INVALID_SYNTAX { get; }
Property Value
Type | Description |
---|---|
string |
INVALID_SYNTAX_CANNOT_PARSE
Looks up a localized string similar to Syntax Error, cannot parse {0}: {1}.
Declaration
public static string? INVALID_SYNTAX_CANNOT_PARSE { get; }
Property Value
Type | Description |
---|---|
string |
INVALID_SYNTAX_ESCAPE_CHARACTER
Looks up a localized string similar to Term can not end with escape character..
Declaration
public static string? INVALID_SYNTAX_ESCAPE_CHARACTER { get; }
Property Value
Type | Description |
---|---|
string |
INVALID_SYNTAX_ESCAPE_NONE_HEX_UNICODE
Looks up a localized string similar to Non-hex character in Unicode escape sequence: {0}.
Declaration
public static string? INVALID_SYNTAX_ESCAPE_NONE_HEX_UNICODE { get; }
Property Value
Type | Description |
---|---|
string |
INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION
Looks up a localized string similar to Truncated unicode escape sequence..
Declaration
public static string? INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION { get; }
Property Value
Type | Description |
---|---|
string |
INVALID_SYNTAX_FUZZY_EDITS
Looks up a localized string similar to Fractional edit distances are not allowed..
Declaration
public static string? INVALID_SYNTAX_FUZZY_EDITS { get; }
Property Value
Type | Description |
---|---|
string |
INVALID_SYNTAX_FUZZY_LIMITS
Looks up a localized string similar to The similarity value for a fuzzy search must be between 0.0 and 1.0..
Declaration
public static string? INVALID_SYNTAX_FUZZY_LIMITS { get; }
Property Value
Type | Description |
---|---|
string |
LEADING_WILDCARD_NOT_ALLOWED
Looks up a localized string similar to Leading wildcard is not allowed: {0}.
Declaration
public static string? LEADING_WILDCARD_NOT_ALLOWED { get; }
Property Value
Type | Description |
---|---|
string |
LUCENE_QUERY_CONVERSION_ERROR
Looks up a localized string similar to Cannot convert query to lucene syntax: {0} error: {1}.
Declaration
public static string? LUCENE_QUERY_CONVERSION_ERROR { get; }
Property Value
Type | Description |
---|---|
string |
NODE_ACTION_NOT_SUPPORTED
Looks up a localized string similar to This node does not support this action..
Declaration
public static string? NODE_ACTION_NOT_SUPPORTED { get; }
Property Value
Type | Description |
---|---|
string |
NUMBER_CANNOT_BE_NEGATIVE
Looks up a localized string similar to The parameter must be greater than or equal to zero..
Declaration
public static string? NUMBER_CANNOT_BE_NEGATIVE { get; }
Property Value
Type | Description |
---|---|
string |
NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY
Looks up a localized string similar to Number class not supported by NumericRangeQueryNode: {0}.
Declaration
public static string? NUMBER_CLASS_NOT_SUPPORTED_BY_NUMERIC_RANGE_QUERY { get; }
Property Value
Type | Description |
---|---|
string |
NUMERIC_CANNOT_BE_EMPTY
Looks up a localized string similar to Field "{0}" is numeric and cannot have an empty value..
Declaration
public static string? NUMERIC_CANNOT_BE_EMPTY { get; }
Property Value
Type | Description |
---|---|
string |
PARAMETER_VALUE_NOT_SUPPORTED
Looks up a localized string similar to Parameter {1} with value {0} not supported..
Declaration
public static string? PARAMETER_VALUE_NOT_SUPPORTED { get; }
Property Value
Type | Description |
---|---|
string |
TOO_MANY_BOOLEAN_CLAUSES
Looks up a localized string similar to Too many boolean clauses, the maximum supported is {0}: {1}.
Declaration
public static string? TOO_MANY_BOOLEAN_CLAUSES { get; }
Property Value
Type | Description |
---|---|
string |
UNSUPPORTED_NUMERIC_DATA_TYPE
Looks up a localized string similar to Unsupported NumericField.DataType: {0}.
Declaration
public static string? UNSUPPORTED_NUMERIC_DATA_TYPE { get; }
Property Value
Type | Description |
---|---|
string |
WILDCARD_NOT_SUPPORTED
Looks up a localized string similar to Wildcard is not supported for query: {0}.
Declaration
public static string? WILDCARD_NOT_SUPPORTED { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetResourceProvider()
Gets the associated resource provider.
Declaration
public static IResourceProvider GetResourceProvider()
Returns
Type | Description |
---|---|
IResourceProvider | The current resource provider. |
See Also
SetResourceProvider(IResourceProvider)
Declaration
public static void SetResourceProvider(IResourceProvider provider)
Parameters
Type | Name | Description |
---|---|---|
IResourceProvider | provider | The new Lucene.Net.Util.IResourceProvider. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |