All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.browseengine.bobo.api.BoboCustomSortField Maven / Gradle / Ivy

Go to download

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;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy