Class FieldQuery
java.lang.Object
org.apache.lucene.search.vectorhighlight.FieldQuery
FieldQuery breaks down query object into terms/phrases and keeps them in a QueryPhraseMap
structure.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Internal structure of a query for highlighting: represents a nested query structure -
Constructor Summary
ConstructorDescriptionFieldQuery
(Query query, IndexReader reader, boolean phraseHighlight, boolean fieldMatch) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
flatten
(Query sourceQuery, IndexReader reader, Collection<Query> flatQueries, float boost) getFieldTermMap
(String fieldName, String term) searchPhrase
(String fieldName, List<FieldTermStack.TermInfo> phraseCandidate)
-
Constructor Details
-
FieldQuery
public FieldQuery(Query query, IndexReader reader, boolean phraseHighlight, boolean fieldMatch) throws IOException - Throws:
IOException
-
-
Method Details
-
flatten
protected void flatten(Query sourceQuery, IndexReader reader, Collection<Query> flatQueries, float boost) throws IOException - Throws:
IOException
-
getFieldTermMap
- Returns:
- QueryPhraseMap
-
searchPhrase
public FieldQuery.QueryPhraseMap searchPhrase(String fieldName, List<FieldTermStack.TermInfo> phraseCandidate) - Returns:
- QueryPhraseMap
-