public class CustomQueryWrappingFilter extends NoCacheFilter implements Releasable
QueryWrapperFilter to make sure the weight is only created once.
This filter should never be cached! This filter only exists for internal usage.| Constructor and Description |
|---|
CustomQueryWrappingFilter(org.apache.lucene.search.Query query)
Constructs a filter which only matches documents matching
query. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
equals(Object o) |
org.apache.lucene.search.DocIdSet |
getDocIdSet(org.apache.lucene.index.AtomicReaderContext context,
org.apache.lucene.util.Bits acceptDocs) |
org.apache.lucene.search.Query |
getQuery()
returns the inner Query
|
int |
hashCode() |
static boolean |
shouldUseCustomQueryWrappingFilter(org.apache.lucene.search.Query query) |
String |
toString() |
wrappublic CustomQueryWrappingFilter(org.apache.lucene.search.Query query)
query.public final org.apache.lucene.search.Query getQuery()
public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.AtomicReaderContext context,
org.apache.lucene.util.Bits acceptDocs)
throws IOException
getDocIdSet in class org.apache.lucene.search.FilterIOExceptionpublic void close()
throws ElasticsearchException
close in interface AutoCloseableclose in interface ReleasableElasticsearchExceptionpublic static boolean shouldUseCustomQueryWrappingFilter(org.apache.lucene.search.Query query)
CustomQueryWrappingFilter should be used.Copyright © 2009–2016. All rights reserved.