Module org.elasticsearch.server
Package org.elasticsearch.search.runtime
Class AbstractStringScriptFieldAutomatonQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.runtime.AbstractScriptFieldQuery<StringFieldScript>
org.elasticsearch.search.runtime.AbstractStringScriptFieldAutomatonQuery
- Direct Known Subclasses:
StringScriptFieldFuzzyQuery
,StringScriptFieldRegexpQuery
,StringScriptFieldWildcardQuery
public abstract class AbstractStringScriptFieldAutomatonQuery
extends AbstractScriptFieldQuery<StringFieldScript>
-
Field Summary
Fields inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
MATCH_COST
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractStringScriptFieldAutomatonQuery
(Script script, StringFieldScript.LeafFactory leafFactory, String fieldName, org.apache.lucene.util.automaton.ByteRunAutomaton automaton) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.search.TwoPhaseIterator
createTwoPhaseIterator
(StringFieldScript scriptContext, org.apache.lucene.search.DocIdSetIterator approximation) Creates theTwoPhaseIterator
for the current leaf reader.protected final boolean
Does the value match this query?protected final boolean
protected final boolean
matches
(StringFieldScript scriptContext, int docId) final void
visit
(org.apache.lucene.search.QueryVisitor visitor) Methods inherited from class org.elasticsearch.search.runtime.AbstractScriptFieldQuery
createWeight, equals, fieldName, hashCode, script
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString, toString
-
Constructor Details
-
AbstractStringScriptFieldAutomatonQuery
public AbstractStringScriptFieldAutomatonQuery(Script script, StringFieldScript.LeafFactory leafFactory, String fieldName, org.apache.lucene.util.automaton.ByteRunAutomaton automaton)
-
-
Method Details
-
createTwoPhaseIterator
protected org.apache.lucene.search.TwoPhaseIterator createTwoPhaseIterator(StringFieldScript scriptContext, org.apache.lucene.search.DocIdSetIterator approximation) Description copied from class:AbstractScriptFieldQuery
Creates theTwoPhaseIterator
for the current leaf reader. Override to inject custom behaviour or provide additional context to the matches method when needed.- Overrides:
createTwoPhaseIterator
in classAbstractScriptFieldQuery<StringFieldScript>
-
matches
-
matches
Does the value match this query? -
visit
public final void visit(org.apache.lucene.search.QueryVisitor visitor) - Overrides:
visit
in classAbstractScriptFieldQuery<StringFieldScript>
-
matches
- Specified by:
matches
in classAbstractScriptFieldQuery<StringFieldScript>
-