List of usage examples for com.amazonaws.services.cloudsearchdomain.model Hit getFields
public java.util.Map<String, java.util.List<String>> getFields()
The fields returned from a document that matches the search request.
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; }