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
    System.Object
    AbstractQueryConfig
    QueryConfigHandler
    StandardQueryConfigHandler
    Inherited Members
    AbstractQueryConfig.Get<T>(ConfigurationKey<T>)
    AbstractQueryConfig.Has<T>(ConfigurationKey<T>)
    AbstractQueryConfig.Set<T>(ConfigurationKey<T>, T)
    AbstractQueryConfig.Unset<T>(ConfigurationKey<T>)
    Namespace: Lucene.Net.QueryParsers.Flexible.Core.Config
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public abstract class QueryConfigHandler : AbstractQueryConfig

    Methods

    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    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
    System.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
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)