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
Namespace: Lucene.Net.Queries.Function.ValueSources
Assembly: Lucene.Net.Queries.dll
Syntax
public class DefFunction : MultiFunction
Constructors
DefFunction(IList<ValueSource>)
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.
Declaration
public DefFunction(IList<ValueSource> sources)
Parameters
Type | Name | Description |
---|---|---|
IList<ValueSource> | sources |
Properties
Name
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.
Declaration
protected override string Name { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetValues(IDictionary, AtomicReaderContext)
Gets the values for this reader and the context that was previously passed to CreateWeight(IDictionary, IndexSearcher)
Declaration
public override FunctionValues GetValues(IDictionary fcontext, AtomicReaderContext readerContext)
Parameters
Type | Name | Description |
---|---|---|
IDictionary | fcontext | |
AtomicReaderContext | readerContext |
Returns
Type | Description |
---|---|
FunctionValues |