public class SortedSetFieldSource extends FieldCacheSource
FunctionValues instances for multi-valued string based fields.
 A SortedSetDocValues contains multiple values for a field, so this technique "selects" a value as the representative value for the document.
SortedSetSelector| Modifier and Type | Field and Description | 
|---|---|
protected SortedSetSelector.Type | 
selector  | 
field| Constructor and Description | 
|---|
SortedSetFieldSource(String field)  | 
SortedSetFieldSource(String field,
                    SortedSetSelector.Type selector)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
description()
description of field, used in explain() 
 | 
boolean | 
equals(Object obj)  | 
SortField | 
getSortField(boolean reverse)
EXPERIMENTAL: This method is subject to change. 
 | 
FunctionValues | 
getValues(Map context,
         LeafReaderContext readerContext)
Gets the values for this reader and the context that was previously
 passed to createWeight(). 
 | 
int | 
hashCode()  | 
getFieldasDoubleValuesSource, asLongValuesSource, createWeight, fromDoubleValuesSource, newContext, toStringprotected final SortedSetSelector.Type selector
public SortedSetFieldSource(String field)
public SortedSetFieldSource(String field, SortedSetSelector.Type selector)
public SortField getSortField(boolean reverse)
ValueSource
 Get the SortField for this ValueSource.  Uses the ValueSource.getValues(java.util.Map, org.apache.lucene.index.LeafReaderContext)
 to populate the SortField.
getSortField in class ValueSourcereverse - true if this is a reverse sort.SortField for the ValueSourcepublic FunctionValues getValues(Map context, LeafReaderContext readerContext) throws IOException
ValueSourcegetValues in class ValueSourceIOExceptionpublic String description()
ValueSourcedescription in class FieldCacheSourcepublic int hashCode()
hashCode in class FieldCacheSourcepublic boolean equals(Object obj)
equals in class FieldCacheSourceCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.