public class Ranking
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
boostFunction |
private java.lang.String |
boostQuery |
private java.util.Map<SchemaDeclaration,java.lang.Float> |
fieldBoosts |
private java.lang.String |
filterQuery |
private static int |
minTokenLen |
private java.lang.String |
name |
private static float |
quantRate |
private java.lang.String |
queryFields |
Constructor and Description |
---|
Ranking() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBoostFunction()
produce a boost function
|
java.util.Set<java.util.Map.Entry<SchemaDeclaration,java.lang.Float>> |
getBoostMap() |
java.lang.String |
getBoostQuery()
get a string that can be added as a 'boost query' at the bq-attribute
|
java.lang.Float |
getFieldBoost(SchemaDeclaration schema) |
java.lang.String |
getFilterQuery()
get a string that can be added as a filter query at the fq-attribute
|
static int |
getMinTokenLen() |
java.lang.String |
getName() |
static float |
getQuantRate() |
java.lang.String |
getQueryFields()
The boost fields are the fields to query used as Solr QF parameter
This is currently used in local and remote queries, asure anticipated search relevant
remote index fields are part of query fields (recommended: at least core
metadata/Dublin Core text fields) even if disabled locally.
|
void |
putFieldBoost(SchemaDeclaration schema,
float boost) |
void |
setBoostFunction(java.lang.String boostFunction) |
void |
setBoostQuery(java.lang.String boostQuery)
set a boost query which will be added as bq-attribute to the query
|
void |
setFilterQuery(java.lang.String filterQuery)
set a filter query which will be added as fq-attribute to the query
|
static void |
setMinTokenLen(int newminTokenLen) |
void |
setName(java.lang.String name) |
static void |
setQuantRate(float newquantRate) |
void |
updateBoosts(java.lang.String boostDef)
the updateDef is a definition string that comes from a configuration file.
|
private static float quantRate
private static int minTokenLen
private java.util.Map<SchemaDeclaration,java.lang.Float> fieldBoosts
private java.lang.String name
private java.lang.String filterQuery
private java.lang.String boostQuery
private java.lang.String boostFunction
private java.lang.String queryFields
public java.lang.String getName()
public void setName(java.lang.String name)
public void putFieldBoost(SchemaDeclaration schema, float boost)
public java.lang.Float getFieldBoost(SchemaDeclaration schema)
public java.util.Set<java.util.Map.Entry<SchemaDeclaration,java.lang.Float>> getBoostMap()
public java.lang.String getQueryFields()
public void updateBoosts(java.lang.String boostDef)
boostDef
- the definition stringpublic void setFilterQuery(java.lang.String filterQuery)
filterQuery
- public java.lang.String getFilterQuery()
public void setBoostQuery(java.lang.String boostQuery)
boostQuery
- public java.lang.String getBoostQuery()
public void setBoostFunction(java.lang.String boostFunction)
public java.lang.String getBoostFunction()
public static void setQuantRate(float newquantRate)
public static void setMinTokenLen(int newminTokenLen)
public static float getQuantRate()
public static int getMinTokenLen()