Modifier and Type | Field and Description |
---|---|
int |
sim
Similarity that was calculated for the given query and this hit.
|
Constructor and Description |
---|
Hit(DocumentData meta,
int sim)
Constructor for the Hit object.
|
Modifier and Type | Method and Description |
---|---|
DocumentData |
getMeta()
Return the metadata of the document that is represented by this hit.
|
void |
setMeta(DocumentData meta)
Sets the meta attribute of the Hit object
|
public Hit(DocumentData meta, int sim)
meta
- metadata of the document that is represented by the hitsim
- calculated similaritypublic void setMeta(DocumentData meta)
meta
- the new metadatapublic DocumentData getMeta()
Copyright © 2016 Egothor. All Rights Reserved.