Search in sources :

Example 1 with BeanGetResult

use of com.rbmhtechnology.vind.api.result.BeanGetResult in project vind by RBMHTechnology.

the class SolrSearchServer method execute.

@Override
public <T> BeanGetResult<T> execute(RealTimeGet search, Class<T> c) {
    DocumentFactory documentFactory = AnnotationUtil.createDocumentFactory(c);
    final GetResult result = this.execute(search, documentFactory);
    return result.toPojoResult(result, c);
}
Also used : DocumentFactory(com.rbmhtechnology.vind.model.DocumentFactory) GetResult(com.rbmhtechnology.vind.api.result.GetResult) BeanGetResult(com.rbmhtechnology.vind.api.result.BeanGetResult)

Example 2 with BeanGetResult

use of com.rbmhtechnology.vind.api.result.BeanGetResult in project vind by RBMHTechnology.

the class ElasticSearchServer method execute.

@Override
public <T> BeanGetResult<T> execute(RealTimeGet search, Class<T> c) {
    final DocumentFactory documentFactory = AnnotationUtil.createDocumentFactory(c);
    final GetResult result = this.execute(search, documentFactory);
    return result.toPojoResult(result, c);
}
Also used : DocumentFactory(com.rbmhtechnology.vind.model.DocumentFactory) GetResult(com.rbmhtechnology.vind.api.result.GetResult) BeanGetResult(com.rbmhtechnology.vind.api.result.BeanGetResult)

Aggregations

BeanGetResult (com.rbmhtechnology.vind.api.result.BeanGetResult)2 GetResult (com.rbmhtechnology.vind.api.result.GetResult)2 DocumentFactory (com.rbmhtechnology.vind.model.DocumentFactory)2