Package | Description |
---|---|
org.apache.lucene.search.highlight |
Highlighting search terms.
|
Modifier and Type | Class and Description |
---|---|
class |
WeightedSpanTerm
Lightweight class to hold term, weight, and positions used for scoring this
term.
|
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<java.lang.String,WeightedTerm> |
QueryTermScorer.termsToFind |
Modifier and Type | Method and Description |
---|---|
static WeightedTerm[] |
QueryTermExtractor.getIdfWeightedTerms(Query query,
IndexReader reader,
java.lang.String fieldName)
Extracts all terms texts of a given Query into an array of WeightedTerms
|
static WeightedTerm[] |
QueryTermExtractor.getTerms(Query query)
Extracts all terms texts of a given Query into an array of WeightedTerms
|
static WeightedTerm[] |
QueryTermExtractor.getTerms(Query query,
boolean prohibited)
Extracts all terms texts of a given Query into an array of WeightedTerms
|
static WeightedTerm[] |
QueryTermExtractor.getTerms(Query query,
boolean prohibited,
java.lang.String fieldName)
Extracts all terms texts of a given Query into an array of WeightedTerms
|
Modifier and Type | Method and Description |
---|---|
private static void |
QueryTermExtractor.getTerms(Query query,
float boost,
java.util.HashSet<WeightedTerm> terms,
boolean prohibited,
java.lang.String fieldName) |
private static void |
QueryTermExtractor.getTermsFromBooleanQuery(BooleanQuery query,
float boost,
java.util.HashSet<WeightedTerm> terms,
boolean prohibited,
java.lang.String fieldName)
extractTerms is currently the only query-independent means of introspecting queries but it only reveals
a list of terms for that query - not the boosts each individual term in that query may or may not have.
|
Constructor and Description |
---|
QueryTermScorer(WeightedTerm[] weightedTerms) |