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.
Inherited Members
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
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 |