C# Class 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.

Inheritance: AbstractQueryConfig
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

AddFieldConfigListener() public méthode

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
Résultat void

GetFieldConfig() public méthode

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
Résultat FieldConfig