Example usage for org.apache.solr.update.processor TextProfileSignature getSignature

List of usage examples for org.apache.solr.update.processor TextProfileSignature getSignature

Introduction

In this page you can find the example usage for org.apache.solr.update.processor TextProfileSignature getSignature.

Prototype

@Override
    public byte[] getSignature() 

Source Link

Usage

From source file:eu.eexcess.federatedrecommender.evaluation.picker.BlockPicker.java

License:Open Source License

private byte[] getFuzzyHashSignature(Result o) {
    TextProfileSignature tPSignatur = new TextProfileSignature();

    tPSignatur.init(params);/*from w  w w.j  a  va  2  s . c  om*/
    if (o.description != null)
        tPSignatur.add(o.description);
    else if (o.title != null) {
        tPSignatur.add(o.title);
        if (o.previewImage != null)
            tPSignatur.add(o.previewImage);
    }
    return tPSignatur.getSignature();
}