Package com.browseengine.bobo.facets.filter

Examples of com.browseengine.bobo.facets.filter.AdaptiveFacetFilter


 
  @Override
  public RandomAccessFilter buildRandomAccessFilter(String value, Properties prop) throws IOException
  {
    FacetFilter f = new FacetFilter(this, value);
    AdaptiveFacetFilter af = new AdaptiveFacetFilter(new FacetDataCacheBuilder(){

    @Override
    public FacetDataCache build(BoboIndexReader reader) {
      return  getFacetData(reader);
    }
View Full Code Here


    RandomAccessFilter filter = null;
   
    if(vals.length > 1)
    {
      RandomAccessFilter f = new FacetOrFilter(this,vals,false);
      filter = new AdaptiveFacetFilter(new FacetDataCacheBuilder(){

      @Override
      public FacetDataCache build(BoboIndexReader reader) {
        return  getFacetData(reader);
      }
View Full Code Here

  @Override
  public RandomAccessFilter buildRandomAccessFilter(String value, Properties prop)
      throws IOException {
    FacetFilter f = new FacetFilter(this, value);
    AdaptiveFacetFilter af = new AdaptiveFacetFilter(new FacetDataCacheBuilder() {

      @Override
      public FacetDataCache<?> build(BoboSegmentReader reader) {
        return getFacetData(reader);
      }
View Full Code Here

      throws IOException {
    RandomAccessFilter filter = null;

    if (vals.length > 1) {
      RandomAccessFilter f = new FacetOrFilter(this, vals, false);
      filter = new AdaptiveFacetFilter(new FacetDataCacheBuilder() {

        @Override
        public FacetDataCache<?> build(BoboSegmentReader reader) {
          return getFacetData(reader);
        }
View Full Code Here

  @Override
  public RandomAccessFilter buildRandomAccessFilter(String value, Properties prop)
      throws IOException {
    MultiValueFacetFilter f = new MultiValueFacetFilter(new MultiDataCacheBuilder(getName(),
        _indexFieldName), value);
    AdaptiveFacetFilter af = new AdaptiveFacetFilter(new SimpleDataCacheBuilder(getName(),
        _indexFieldName), f, new String[] { value }, false);
    return af;
  }
View Full Code Here

    RandomAccessFilter filter = null;
    if (vals.length > 1) {
      MultiValueORFacetFilter f = new MultiValueORFacetFilter(this, vals, false); // catch the "not"
                                                                                  // case later
      if (!isNot) {
        AdaptiveFacetFilter af = new AdaptiveFacetFilter(new SimpleDataCacheBuilder(getName(),
            _indexFieldName), f, vals, false);
        return af;
      } else {
        filter = f;
      }
View Full Code Here

  @Override
  public RandomAccessFilter buildRandomAccessFilter(String value, Properties prop) throws IOException
  {
  MultiValueFacetFilter f= new MultiValueFacetFilter(new MultiDataCacheBuilder(getName(), _indexFieldName), value);
    AdaptiveFacetFilter af = new AdaptiveFacetFilter(new SimpleDataCacheBuilder(getName(), _indexFieldName), f, new String[]{value}, false);
    return af;
  }
View Full Code Here

    RandomAccessFilter filter = null;
    if (vals.length > 1)
    {
      MultiValueORFacetFilter f = new MultiValueORFacetFilter(this,vals,false);      // catch the "not" case later
      if (!isNot) {
        AdaptiveFacetFilter af = new AdaptiveFacetFilter(new SimpleDataCacheBuilder(getName(), _indexFieldName), f, vals, false);
        return af;
      }
      else{
        filter = f;
      }
View Full Code Here

 
  @Override
  public RandomAccessFilter buildRandomAccessFilter(String value, Properties prop) throws IOException
  {
    FacetFilter f = new FacetFilter(this, value);
    AdaptiveFacetFilter af = new AdaptiveFacetFilter(new FacetDataCacheBuilder(){

    @Override
    public FacetDataCache build(BoboIndexReader reader) {
      return  getFacetData(reader);
    }
View Full Code Here

    RandomAccessFilter filter = null;
   
    if(vals.length > 1)
    {
      RandomAccessFilter f = new FacetOrFilter(this,vals,false);
      filter = new AdaptiveFacetFilter(new FacetDataCacheBuilder(){

      @Override
      public FacetDataCache build(BoboIndexReader reader) {
        return  getFacetData(reader);
      }
View Full Code Here

TOP

Related Classes of com.browseengine.bobo.facets.filter.AdaptiveFacetFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.