public class RelatednessAgg extends AggValueSource
Modifier and Type | Field and Description |
---|---|
protected Query |
bgQ |
protected Query |
fgQ |
protected double |
min_pop |
static String |
NAME |
name
Constructor and Description |
---|
RelatednessAgg(Query fgQ,
Query bgQ) |
Modifier and Type | Method and Description |
---|---|
static double |
computeRelatedness(long fg_count,
long fg_size,
long bg_count,
long bg_size)
This is an aproximated Z-Score, as described in the "Scoring Semantic Relationships"
section of "The Semantic Knowledge Graph:
A compact, auto-generated model for real-time traversal and ranking of any relationship
within a domain"
See Also:
java-user@lucene Message-ID: 449AEB60.4070300@alias-i.com
Phrase Extraction: Binomial Hypothesis Testing vs.
|
FacetMerger |
createFacetMerger(Object prototype) |
SlotAcc |
createSlotAcc(org.apache.solr.search.facet.FacetContext fcontext,
int numDocs,
int numSlots) |
String |
description() |
boolean |
equals(Object o) |
FunctionValues |
getValues(Map context,
LeafReaderContext readerContext) |
int |
hashCode() |
static double |
roundTo5Digits(double val)
Helper function for rounding/truncating relatedness & popularity values to
5 decimal digits, since these values are all probabilistic more then 5 digits aren't really relevant
and may give a missleading impression of added precision.
|
void |
setOpts(QParser parser) |
getChildren, name
asDoubleValuesSource, asLongValuesSource, createWeight, fromDoubleValuesSource, getSortField, newContext, toString
protected final Query fgQ
protected final Query bgQ
protected double min_pop
public static final String NAME
public void setOpts(QParser parser)
public String description()
description
in class ValueSource
public boolean equals(Object o)
equals
in class AggValueSource
public int hashCode()
hashCode
in class ValueSource
public FunctionValues getValues(Map context, LeafReaderContext readerContext) throws IOException
getValues
in class AggValueSource
IOException
public SlotAcc createSlotAcc(org.apache.solr.search.facet.FacetContext fcontext, int numDocs, int numSlots) throws IOException
createSlotAcc
in class AggValueSource
IOException
public FacetMerger createFacetMerger(Object prototype)
createFacetMerger
in class AggValueSource
public static double computeRelatedness(long fg_count, long fg_size, long bg_count, long bg_size)
public static double roundTo5Digits(double val)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.