| Package | Description |
|---|---|
| org.gcube.search.datafusion.datatypes | |
| org.gcube.search.datafusion.helpers |
| Modifier and Type | Method and Description |
|---|---|
static List<RankedRecord> |
RankedRecord.recalculateScores(Map<String,Long> recPositions,
Map<String,Pair> recScores,
Boolean includePosition)
Recalculates the score of the records that are retrieved after querying the lucene index in order to
perform some other refinements.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Pair> |
IndexHelper.rankDocuments(org.apache.lucene.store.Directory index,
String query,
int count) |
static Map<String,Pair> |
IndexHelper.rankDocuments(org.apache.lucene.store.Directory index,
String query,
int count,
int hitsCount)
Performs the query on the index and returns a map with key the id of the record and value a pair of score and lucene id (different from record id)
Obviously, the returned result is not sorted but it requires sorting on the score
|
Copyright © 2016. All Rights Reserved.