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

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

Introduction

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

Prototype


public String getId() 

Source Link

Document

The document ID of 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());
    return document;
}