Example usage for com.amazonaws.services.cloudsearchdomain.model Hit getFields

List of usage examples for com.amazonaws.services.cloudsearchdomain.model Hit getFields

Introduction

In this page you can find the example usage for com.amazonaws.services.cloudsearchdomain.model Hit getFields.

Prototype


public java.util.Map<String, java.util.List<String>> getFields() 

Source Link

Document

The fields returned from a document that matches the search request.

Usage

From source file:com.clicktravel.infrastructure.persistence.aws.cloudsearch.CloudSearchEngine.java

License:Apache License

private <T extends Document> T getDocument(final Hit hit, final Class<T> documentClass,
        final Map<String, PropertyDescriptor> properties) throws Exception {
    final T document = fieldParser.unmarshall(hit.getFields(), documentClass);
    document.setId(hit.getId());//from   w  w w .ja va  2s  . co m
    return document;
}