Class DefFunction
ValueSource implementation which only returns the values from the provided ValueSources which are available for a particular docId. Consequently, when combined with a ConstValueSource, this function serves as a way to return a default value when the values for a field are unavailable.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Queries.Function.ValueSources
Assembly: Lucene.Net.Queries.dll
Syntax
public class DefFunction : MultiFunction
Constructors
| Improve this Doc View SourceDefFunction(IList<ValueSource>)
Declaration
public DefFunction(IList<ValueSource> sources)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<ValueSource> | sources |
Properties
| Improve this Doc View SourceName
Declaration
protected override string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
| Improve this Doc View SourceGetValues(IDictionary, AtomicReaderContext)
Declaration
public override FunctionValues GetValues(IDictionary fcontext, AtomicReaderContext readerContext)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | fcontext | |
AtomicReaderContext | readerContext |
Returns
Type | Description |
---|---|
FunctionValues |