public class SharedFieldComparatorSource
extends org.apache.lucene.search.FieldComparatorSource
FieldComparatorSource for FieldComparators which
know how to sort on a lucene field that contains values for multiple properties.| Constructor and Description |
|---|
SharedFieldComparatorSource(String fieldname,
ItemStateManager ism,
HierarchyManager hmgr,
NamespaceMappings nsMappings)
Create a new
SharedFieldComparatorSource for a given shared field. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.search.FieldComparator |
newComparator(String propertyName,
int numHits,
int sortPos,
boolean reversed)
Create a new
FieldComparator for an embedded propertyName
and a reader. |
public SharedFieldComparatorSource(String fieldname, ItemStateManager ism, HierarchyManager hmgr, NamespaceMappings nsMappings)
SharedFieldComparatorSource for a given shared field.fieldname - the shared field.ism - the item state manager of this workspace.hmgr - the hierarchy manager of this workspace.nsMappings - the index internal namespace mappings.public org.apache.lucene.search.FieldComparator newComparator(String propertyName, int numHits, int sortPos, boolean reversed) throws IOException
FieldComparator for an embedded propertyName
and a reader.newComparator in class org.apache.lucene.search.FieldComparatorSourcepropertyName - the relative path to the property to sort on as returned
by Path.getString().FieldComparatorIOException - if an error occursCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.