com.browseengine.bobo.api.BoboCustomSortField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bobo-browse Show documentation
Show all versions of bobo-browse Show documentation
Bobo is a Faceted Search implementation written purely in Java, an extension of Apache Lucene
The newest version!
package com.browseengine.bobo.api;
import org.apache.lucene.search.SortField;
import com.browseengine.bobo.sort.DocComparatorSource;
public class BoboCustomSortField extends SortField {
private final DocComparatorSource _factory;
public BoboCustomSortField(String field, boolean reverse, DocComparatorSource factory) {
super(field, SortField.Type.CUSTOM, reverse);
_factory = factory;
}
public DocComparatorSource getCustomComparatorSource() {
return _factory;
}
}