org.elasticsearch.index.percolator
Class PercolatorExecutor

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
      extended by org.elasticsearch.index.percolator.PercolatorExecutor
All Implemented Interfaces:
IndexComponent

public class PercolatorExecutor
extends AbstractIndexComponent


Nested Class Summary
static class PercolatorExecutor.DocAndQueryRequest
           
static class PercolatorExecutor.DocAndSourceQueryRequest
           
static class PercolatorExecutor.Response
           
static class PercolatorExecutor.SourceRequest
           
 
Field Summary
 
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
componentSettings, index, indexSettings, logger
 
Constructor Summary
PercolatorExecutor(Index index, Settings indexSettings, MapperService mapperService, IndexQueryParserService queryParserService, IndexCache indexCache)
           
 
Method Summary
 void addQueries(java.util.Map<java.lang.String,org.apache.lucene.search.Query> queries)
           
 void addQuery(java.lang.String name, byte[] source)
           
 void addQuery(java.lang.String name, byte[] source, int sourceOffset, int sourceLength)
           
 void addQuery(java.lang.String name, org.apache.lucene.search.Query query)
           
 void addQuery(java.lang.String name, QueryBuilder queryBuilder)
           
 void close()
           
 org.apache.lucene.search.Query parseQuery(java.lang.String name, byte[] source, int sourceOffset, int sourceLength)
           
 PercolatorExecutor.Response percolate(PercolatorExecutor.DocAndQueryRequest request)
           
 PercolatorExecutor.Response percolate(PercolatorExecutor.DocAndSourceQueryRequest request)
           
 PercolatorExecutor.Response percolate(PercolatorExecutor.SourceRequest request)
           
 void removeQuery(java.lang.String name)
           
 void setIndicesService(IndicesService indicesService)
           
 
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
index, nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PercolatorExecutor

@Inject
public PercolatorExecutor(Index index,
                                 @IndexSettings
                                 Settings indexSettings,
                                 MapperService mapperService,
                                 IndexQueryParserService queryParserService,
                                 IndexCache indexCache)
Method Detail

setIndicesService

public void setIndicesService(IndicesService indicesService)

close

public void close()

addQuery

public void addQuery(java.lang.String name,
                     QueryBuilder queryBuilder)
              throws ElasticSearchException
Throws:
ElasticSearchException

addQuery

public void addQuery(java.lang.String name,
                     byte[] source)
              throws ElasticSearchException
Throws:
ElasticSearchException

addQuery

public void addQuery(java.lang.String name,
                     byte[] source,
                     int sourceOffset,
                     int sourceLength)
              throws ElasticSearchException
Throws:
ElasticSearchException

parseQuery

public org.apache.lucene.search.Query parseQuery(java.lang.String name,
                                                 byte[] source,
                                                 int sourceOffset,
                                                 int sourceLength)
                                          throws ElasticSearchException
Throws:
ElasticSearchException

addQuery

public void addQuery(java.lang.String name,
                     org.apache.lucene.search.Query query)

removeQuery

public void removeQuery(java.lang.String name)

addQueries

public void addQueries(java.util.Map<java.lang.String,org.apache.lucene.search.Query> queries)

percolate

public PercolatorExecutor.Response percolate(PercolatorExecutor.SourceRequest request)
                                      throws ElasticSearchException
Throws:
ElasticSearchException

percolate

public PercolatorExecutor.Response percolate(PercolatorExecutor.DocAndSourceQueryRequest request)
                                      throws ElasticSearchException
Throws:
ElasticSearchException

percolate

public PercolatorExecutor.Response percolate(PercolatorExecutor.DocAndQueryRequest request)
                                      throws ElasticSearchException
Throws:
ElasticSearchException