org.elasticsearch.index.query
Class NotFilterBuilder

java.lang.Object
  extended by org.elasticsearch.index.query.BaseFilterBuilder
      extended by org.elasticsearch.index.query.NotFilterBuilder
All Implemented Interfaces:
ToXContent, FilterBuilder

public class NotFilterBuilder
extends BaseFilterBuilder

A filter that matches documents matching boolean combinations of other filters.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
NotFilterBuilder(FilterBuilder filter)
           
 
Method Summary
 NotFilterBuilder cache(boolean cache)
          Should the filter be cached or not.
protected  void doXContent(XContentBuilder builder, ToXContent.Params params)
           
 NotFilterBuilder filterName(String filterName)
           
 
Methods inherited from class org.elasticsearch.index.query.BaseFilterBuilder
toXContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotFilterBuilder

public NotFilterBuilder(FilterBuilder filter)
Method Detail

cache

public NotFilterBuilder cache(boolean cache)
Should the filter be cached or not. Defaults to false.


filterName

public NotFilterBuilder filterName(String filterName)

doXContent

protected void doXContent(XContentBuilder builder,
                          ToXContent.Params params)
                   throws IOException
Specified by:
doXContent in class BaseFilterBuilder
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.