public class FulltextSearchHit<V extends Comparable<V>> extends Object implements IFulltextSearchHit<V>, Comparable<FulltextSearchHit<V>>
Modifier and Type | Field and Description |
---|---|
protected IBindingSet |
incomingBindings |
protected String |
res |
protected Double |
score |
protected FTS.SearchResultType |
searchResultType |
protected String |
snippet |
Constructor and Description |
---|
FulltextSearchHit(String res,
Double score,
String snippet,
IBindingSet incomingBindings,
FTS.SearchResultType searchResultType) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FulltextSearchHit<V> o)
Sorts
FulltextSearchHit s into decreasing cosine order with ties broken
by the the docId . |
IBindingSet |
getIncomingBindings()
Get the set of incoming bindings for the search hit
|
String |
getRes()
The result of the search (values contained in projected columns).
|
Double |
getScore()
The score associated with the search result.
|
FTS.SearchResultType |
getSearchResultType()
Get the conversion target type for the search hit
|
String |
getSnippet()
The search snippet associated with the result.
|
String |
toString() |
protected final String res
protected final Double score
protected final String snippet
protected final IBindingSet incomingBindings
protected final FTS.SearchResultType searchResultType
public FulltextSearchHit(String res, Double score, String snippet, IBindingSet incomingBindings, FTS.SearchResultType searchResultType)
public int compareTo(FulltextSearchHit<V> o)
FulltextSearchHit
s into decreasing cosine order with ties broken
by the the docId
.compareTo
in interface Comparable<FulltextSearchHit<V extends Comparable<V>>>
public String getRes()
IFulltextSearchHit
getRes
in interface IFulltextSearchHit<V extends Comparable<V>>
public Double getScore()
IFulltextSearchHit
getScore
in interface IFulltextSearchHit<V extends Comparable<V>>
public String getSnippet()
IFulltextSearchHit
getSnippet
in interface IFulltextSearchHit<V extends Comparable<V>>
public IBindingSet getIncomingBindings()
IFulltextSearchHit
getIncomingBindings
in interface IFulltextSearchHit<V extends Comparable<V>>
public FTS.SearchResultType getSearchResultType()
IFulltextSearchHit
getSearchResultType
in interface IFulltextSearchHit<V extends Comparable<V>>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.