org.elasticsearch.index.query
Class FQueryFilterParser

java.lang.Object
  extended by org.elasticsearch.index.query.FQueryFilterParser
All Implemented Interfaces:
FilterParser

public class FQueryFilterParser
extends java.lang.Object
implements FilterParser

The "fquery" filter is the same as the QueryFilterParser except that it allows also to associate a name with the query filter.


Field Summary
static java.lang.String NAME
           
 
Constructor Summary
FQueryFilterParser()
           
 
Method Summary
 java.lang.String[] names()
          The names this filter is registered under.
 org.apache.lucene.search.Filter parse(QueryParseContext parseContext)
          Parses the into a filter from the current parser location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

FQueryFilterParser

@Inject
public FQueryFilterParser()
Method Detail

names

public java.lang.String[] names()
Description copied from interface: FilterParser
The names this filter is registered under.

Specified by:
names in interface FilterParser

parse

public org.apache.lucene.search.Filter parse(QueryParseContext parseContext)
                                      throws java.io.IOException,
                                             QueryParsingException
Description copied from interface: FilterParser
Parses the into a filter from the current parser location. Will be at "START_OBJECT" location, and should end when the token is at the matching "END_OBJECT".

Specified by:
parse in interface FilterParser
Throws:
java.io.IOException
QueryParsingException