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(Map<String,org.apache.lucene.search.Query> queries)
           
 void addQuery(String name, BytesReference source)
           
 void addQuery(String name, QueryBuilder queryBuilder)
           
 void close()
           
 org.apache.lucene.search.Query parseQuery(String name, BytesReference source)
           
 PercolatorExecutor.Response percolate(PercolatorExecutor.DocAndSourceQueryRequest request)
           
 PercolatorExecutor.Response percolate(PercolatorExecutor.SourceRequest request)
           
 void removeQuery(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(String name,
                     QueryBuilder queryBuilder)
              throws ElasticSearchException
Throws:
ElasticSearchException

addQuery

public void addQuery(String name,
                     BytesReference source)
              throws ElasticSearchException
Throws:
ElasticSearchException

parseQuery

public org.apache.lucene.search.Query parseQuery(String name,
                                                 BytesReference source)
                                          throws ElasticSearchException
Throws:
ElasticSearchException

removeQuery

public void removeQuery(String name)

addQueries

public void addQueries(Map<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


Copyright © 2009-2012. All Rights Reserved.