Package org.apache.lucene.queries

Examples of org.apache.lucene.queries.ChainedFilter


        Filter filter;
        if (spatialfilter == null) {
            filter = duplicateRemovingFilter;
        } else {
            Filter[] filters = new Filter[]{duplicateRemovingFilter, spatialfilter};
            filter = new ChainedFilter(filters, ChainedFilter.AND);
        }

        _filter = new CachingWrapperFilter(filter);

        String sortBy = Util.getParam(request, Geonet.SearchResult.SORT_BY, Geonet.SearchResult.SortBy.RELEVANCE);
View Full Code Here


        if (_filter == null) {
            cFilter = duplicateRemovingFilter;
        }
        else {
            Filter[] filters = new Filter[]{duplicateRemovingFilter, _filter };
            cFilter = new ChainedFilter(filters, ChainedFilter.AND);
        }
        cFilter = new CachingWrapperFilter(cFilter);
        return cFilter;
    }
View Full Code Here

        docsWithField = null;//all docs
      }
    }

    //not so much a chain but a way to conveniently invert the Filter
    DocIdSet docIdSet = new ChainedFilter(new Filter[]{intersectsFilter}, ChainedFilter.ANDNOT).getDocIdSet(context, acceptDocs);
    return BitsFilteredDocIdSet.wrap(docIdSet, docsWithField);
  }
View Full Code Here

        return (Q)this;
    }

    private Filter getFilter() {
        if (_filter == null && !filters.isEmpty()) {
            _filter = new ChainedFilter(filters.toArray(new Filter[filters.size()]));
        }
        return _filter;
    }
View Full Code Here

            return rangeFilter;
        }
        else
        {
            Filter[] filters = new Filter[]{filter, rangeFilter};
            return new ChainedFilter(filters, ChainedFilter.AND);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.lucene.queries.ChainedFilter

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.