Search in sources :

Example 1 with UnknownTypeSearchResultData

use of com.thinkbiganalytics.search.rest.model.UnknownTypeSearchResultData in project kylo by Teradata.

the class ElasticSearchSearchResultTransform method getUnknownTypeSearchResultData.

private UnknownTypeSearchResultData getUnknownTypeSearchResultData(SearchHit searchHit) {
    UnknownTypeSearchResultData unknownTypeSearchResultData = new UnknownTypeSearchResultData();
    unknownTypeSearchResultData.setRawData(searchHit.getSource());
    unknownTypeResultCount += 1L;
    return unknownTypeSearchResultData;
}
Also used : UnknownTypeSearchResultData(com.thinkbiganalytics.search.rest.model.UnknownTypeSearchResultData)

Example 2 with UnknownTypeSearchResultData

use of com.thinkbiganalytics.search.rest.model.UnknownTypeSearchResultData in project kylo by Teradata.

the class ElasticSearchRestSearchResultTransform method getUnknownTypeSearchResultData.

private UnknownTypeSearchResultData getUnknownTypeSearchResultData(ElasticSearchRestSearchHit elasticSearchRestSearchHit) {
    UnknownTypeSearchResultData unknownTypeSearchResultData = new UnknownTypeSearchResultData();
    Map<String, Object> rawData = new HashMap<>();
    rawData.put(RAW_DATA_KEY, elasticSearchRestSearchHit.getRawHit());
    unknownTypeSearchResultData.setRawData(rawData);
    unknownTypeResultCount += 1L;
    return unknownTypeSearchResultData;
}
Also used : HashMap(java.util.HashMap) UnknownTypeSearchResultData(com.thinkbiganalytics.search.rest.model.UnknownTypeSearchResultData)

Example 3 with UnknownTypeSearchResultData

use of com.thinkbiganalytics.search.rest.model.UnknownTypeSearchResultData in project kylo by Teradata.

the class SolrSearchResultTransform method getUnknownTypeSearchResultData.

private UnknownTypeSearchResultData getUnknownTypeSearchResultData(Map<String, Object> solrDocumentFieldValueMap) {
    UnknownTypeSearchResultData unknownTypeSearchResultData = new UnknownTypeSearchResultData();
    unknownTypeSearchResultData.setRawData(solrDocumentFieldValueMap);
    unknownTypeResultCount += 1L;
    return unknownTypeSearchResultData;
}
Also used : UnknownTypeSearchResultData(com.thinkbiganalytics.search.rest.model.UnknownTypeSearchResultData)

Aggregations

UnknownTypeSearchResultData (com.thinkbiganalytics.search.rest.model.UnknownTypeSearchResultData)3 HashMap (java.util.HashMap)1