DOCUMENT_TYPE - the type of the documents to index.KEY_TYPE - the look-up-able part of the document.public static interface InvertedIndex.DocumentDistanceMeasurer<DOCUMENT_TYPE,KEY_TYPE>
| Modifier and Type | Method and Description |
|---|---|
double |
measure(DOCUMENT_TYPE reference,
Set<KEY_TYPE> referenceKeys,
DOCUMENT_TYPE doc,
Set<KEY_TYPE> docKeys)
Measures the distance (value between 0.0 and 1.0) between a reference
document and a candidate document.
|
double measure(DOCUMENT_TYPE reference, Set<KEY_TYPE> referenceKeys, DOCUMENT_TYPE doc, Set<KEY_TYPE> docKeys)
reference - the reference document.referenceKeys - the reference document key parts.doc - the candidate document.docKeys - the candidate document key parts.Copyright © 2016. All rights reserved.