Revision 49279
Added by Claudio Atzori over 6 years ago
modules/dnet-index-solr-client/trunk/src/main/java/eu/dnetlib/functionality/index/query/SolrResponseParser.java | ||
---|---|---|
44 | 44 |
/** The wrapper rank. */ |
45 | 45 |
protected final UnaryFunction<String, SolrDocument> wrapperRank = |
46 | 46 |
doc -> addRanking( |
47 |
unzip(base64Decode(getSingleField(doc, IndexFieldUtility.RESULT))),
|
|
47 |
getSingleField(doc, IndexFieldUtility.RESULT),
|
|
48 | 48 |
getSingleField(doc, IndexFieldUtility.SCORE_FIELD)); |
49 | 49 |
|
50 | 50 |
/** The wrapper no rank. */ |
51 | 51 |
protected final UnaryFunction<String, SolrDocument> wrapperNoRank = |
52 |
doc -> wrap(unzip(base64Decode(getSingleField(doc, IndexFieldUtility.RESULT))));
|
|
52 |
doc -> wrap(getSingleField(doc, IndexFieldUtility.RESULT));
|
|
53 | 53 |
|
54 | 54 |
/** |
55 | 55 |
* The Constructor. |
Also available in: Unified diff
no need to unzip field __result