// get needle
Element elToMatch = docContainer.getElementFor(id, DocumentContainer.MASTER);
String needle = elToMatch.getTextContent();
// perform match
sCloud.match(needle);
// prepare list of matches
double threshold = PropertiesProvider.getInstance().getRatingThresholdForProposals();
if(type == SearchManager.TYPE_FUZZY)
threshold = 0;