public static class MatchingQueryTerms.QueryTermProperties extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
Boolean |
required |
EntryStatistics |
stats
Info about the query term.
|
Set<String> |
tags |
List<WeightingModel> |
termModels
The term score modifiers associated with a particular query term.
|
double |
weight
The weight of a query term.
|
Constructor and Description |
---|
QueryTermProperties(int _index) |
QueryTermProperties(int _index,
double w)
A constructor for setting the weight of a term.
|
QueryTermProperties(int _index,
double w,
EntryStatistics _stats)
A constructor for setting the weight of a term
and its term code.
|
QueryTermProperties(int _index,
double w,
WeightingModel model)
A constructor for setting the weight and a
term score modifier for a term.
|
QueryTermProperties(int _index,
double w,
WeightingModel model,
EntryStatistics _stats)
A constructor for setting a weight, a term score modifier
and the term code for a query term.
|
QueryTermProperties(int _index,
EntryStatistics _stats)
An constructor for setting the term code
of a query term.
|
QueryTermProperties(int _index,
WeightingModel model)
A constructor for setting a term score modifier for a term.
|
QueryTermProperties(int _index,
WeightingModel model,
EntryStatistics _stats)
A constructor for setting a term score modifier for a term
and its term code.
|
Modifier and Type | Method and Description |
---|---|
MatchingQueryTerms.QueryTermProperties |
clone() |
Boolean |
getRequired() |
Set<String> |
getTags() |
double |
getWeight() |
int |
hashCode() |
void |
setRequired(boolean b) |
void |
setTag(String tag) |
void |
setWeight(double weight) |
String |
toString() |
public Boolean required
public double weight
public EntryStatistics stats
public List<WeightingModel> termModels
public QueryTermProperties(int _index)
public QueryTermProperties(int _index, EntryStatistics _stats)
_stats
- the statistics of the query termpublic QueryTermProperties(int _index, double w)
w
- double the weight of a query term.public QueryTermProperties(int _index, WeightingModel model)
model
- WeightingModel modifier associated with a query term.public QueryTermProperties(int _index, double w, WeightingModel model)
w
- double the weight of a query term.model
- WeightingModel modifier associated with a query term.public QueryTermProperties(int _index, double w, EntryStatistics _stats)
w
- double the weight of a query term._stats
- statistics of the query termpublic QueryTermProperties(int _index, WeightingModel model, EntryStatistics _stats)
model
- WeightingModel modifier associated with a query term._stats
- statistics of the query termpublic QueryTermProperties(int _index, double w, WeightingModel model, EntryStatistics _stats)
w
- double the weight of a query term.model
- WeightingModel modifier associated with a query term._stats
- statistics of the query termpublic double getWeight()
public Boolean getRequired()
public void setWeight(double weight)
public void setTag(String tag)
public void setRequired(boolean b)
public MatchingQueryTerms.QueryTermProperties clone()
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow