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

com.browseengine.bobo.api.FacetAccessible 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 java.util.List;

public interface FacetAccessible {
  /**
   * Gets gathered top facets
   * @return list of facets
   */
  List getFacets();

  /**
   * Gets the facet given a value. This is a way for random accessing
   * into the facet data structure.
   * @param value Facet value
   * @return a facet with count filled in
   */
  BrowseFacet getFacet(String value);

  /**
   * Gets the facet count given a value. This is a way for random
   * accessing the facet count.
   * @param value Facet value
   * @return a facet with count filled in
   */
  int getFacetHitsCount(Object value);

  /**
   * Responsible for release resources used. If the implementing class
   * does not use a lot of resources,
   * it does not have to do anything.
   */
  public void close();

  /**
   * Returns an iterator to visit all the facets
   * @return	Returns a FacetIterator to iterate over all the facets
   */
  FacetIterator iterator();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy