Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class QueryConfigHandler

    This class can be used to hold any query configuration and no field configuration. For field configuration, it creates an empty FieldConfig object and delegate it to field config listeners, these are responsible for setting up all the field configuration.

    QueryConfigHandler should be extended by classes that intends to provide configuration to IQueryNodeProcessor objects.

    The class that extends QueryConfigHandler should also provide FieldConfig objects for each collection field.

    Inheritance
    object
    AbstractQueryConfig
    QueryConfigHandler
    StandardQueryConfigHandler
    Inherited Members
    AbstractQueryConfig.TryGetValue<T>(ConfigurationKey<T>, out T)
    AbstractQueryConfig.Get<T>(ConfigurationKey<T>)
    AbstractQueryConfig.Has<T>(ConfigurationKey<T>)
    AbstractQueryConfig.Set<T>(ConfigurationKey<T>, T)
    AbstractQueryConfig.Unset<T>(ConfigurationKey<T>)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.QueryParsers.Flexible.Core.Config
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public abstract class QueryConfigHandler : AbstractQueryConfig

    Methods

    AddFieldConfigListener(IFieldConfigListener)

    Adds a listener. The added listeners are called in the order they are added.

    Declaration
    public virtual void AddFieldConfigListener(IFieldConfigListener listener)
    Parameters
    Type Name Description
    IFieldConfigListener listener

    the listener to be added

    See Also
    FieldConfig
    IFieldConfigListener
    QueryConfigHandler

    GetFieldConfig(string)

    Returns an implementation of FieldConfig for a specific field name. If the implemented QueryConfigHandler does not know a specific field name, it may return null, indicating there is no configuration for that field.

    Declaration
    public virtual FieldConfig GetFieldConfig(string fieldName)
    Parameters
    Type Name Description
    string fieldName

    the field name

    Returns
    Type Description
    FieldConfig

    A FieldConfigobject containing the field name configuration or null, if the implemented QueryConfigHandler has no configuration for that field

    See Also
    FieldConfig
    IFieldConfigListener
    QueryConfigHandler

    See Also

    FieldConfig
    IFieldConfigListener
    QueryConfigHandler
    Back to top Copyright © 2024 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.