public class FieldQuery extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FieldQuery.QueryPhraseMap
Internal structure of a query for highlighting: represents
a nested query structure
|
Constructor and Description |
---|
FieldQuery(Query query,
IndexReader reader,
boolean phraseHighlight,
boolean fieldMatch) |
Modifier and Type | Method and Description |
---|---|
protected void |
flatten(Query sourceQuery,
IndexReader reader,
Collection<Query> flatQueries,
float boost) |
FieldQuery.QueryPhraseMap |
getFieldTermMap(String fieldName,
String term) |
FieldQuery.QueryPhraseMap |
searchPhrase(String fieldName,
List<FieldTermStack.TermInfo> phraseCandidate) |
public FieldQuery(Query query, IndexReader reader, boolean phraseHighlight, boolean fieldMatch) throws IOException
IOException
protected void flatten(Query sourceQuery, IndexReader reader, Collection<Query> flatQueries, float boost) throws IOException
IOException
public FieldQuery.QueryPhraseMap getFieldTermMap(String fieldName, String term)
public FieldQuery.QueryPhraseMap searchPhrase(String fieldName, List<FieldTermStack.TermInfo> phraseCandidate)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.