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
FulltextSearchHits 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)
FulltextSearchHits into decreasing cosine order with ties broken
by the the docId.compareTo in interface Comparable<FulltextSearchHit<V extends Comparable<V>>>public String getRes()
IFulltextSearchHitgetRes in interface IFulltextSearchHit<V extends Comparable<V>>public Double getScore()
IFulltextSearchHitgetScore in interface IFulltextSearchHit<V extends Comparable<V>>public String getSnippet()
IFulltextSearchHitgetSnippet in interface IFulltextSearchHit<V extends Comparable<V>>public IBindingSet getIncomingBindings()
IFulltextSearchHitgetIncomingBindings in interface IFulltextSearchHit<V extends Comparable<V>>public FTS.SearchResultType getSearchResultType()
IFulltextSearchHitgetSearchResultType in interface IFulltextSearchHit<V extends Comparable<V>>Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.