Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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 System.Resources.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 System.Resources.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 System.Resources.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.

    Inheritance
    System.Object
    QueryParserMessages
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.QueryParsers.Flexible.Core.Messages
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public static class QueryParserMessages

    Properties

    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.Globalization.CultureInfo
    | Improve this Doc View Source

    EMPTY_MESSAGE

    Looks up a localized string similar to .

    Declaration
    public static string EMPTY_MESSAGE { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    INVALID_SYNTAX

    Looks up a localized string similar to Syntax Error: {0}.

    Declaration
    public static string INVALID_SYNTAX { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String
    | Improve this Doc View Source

    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
    System.String

    Methods

    | Improve this Doc View Source

    GetResourceProvider()

    Gets the associated resource provider.

    Declaration
    public static IResourceProvider GetResourceProvider()
    Returns
    Type Description
    Lucene.Net.Util.IResourceProvider

    The current resource provider.

    See Also
    SetResourceProvider(IResourceProvider)
    | Improve this Doc View Source

    SetResourceProvider(IResourceProvider)

    Sets the Lucene.Net.Util.IResourceProvider instance used to provide localized System.Strings and System.Objects.

    Declaration
    public static void SetResourceProvider(IResourceProvider provider)
    Parameters
    Type Name Description
    Lucene.Net.Util.IResourceProvider provider

    The new Lucene.Net.Util.IResourceProvider.

    Exceptions
    Type Condition
    System.ArgumentNullException

    The provider parameter is null.

    See Also
    GetResourceProvider()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.