C# Класс Lucene.Net.QueryParsers.Flexible.Core.Config.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 Processors.IQueryNodeProcessor objects.

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

Наследование: AbstractQueryConfig
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddFieldConfigListener ( IFieldConfigListener listener ) : void

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

GetFieldConfig ( string fieldName ) : FieldConfig

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.

Описание методов

AddFieldConfigListener() публичный метод

Adds a listener. The added listeners are called in the order they are added.
public AddFieldConfigListener ( IFieldConfigListener listener ) : void
listener IFieldConfigListener the listener to be added
Результат void

GetFieldConfig() публичный метод

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.
public GetFieldConfig ( string fieldName ) : FieldConfig
fieldName string the field name
Результат FieldConfig