Class SelectToElasticsearch
- java.lang.Object
-
- fr.gouv.vitam.common.database.translators.RequestToAbstract
-
- fr.gouv.vitam.common.database.translators.elasticsearch.RequestToElasticsearch
-
- fr.gouv.vitam.common.database.translators.elasticsearch.SelectToElasticsearch
-
public class SelectToElasticsearch extends RequestToElasticsearch
Select To Elasticsearch
-
-
Field Summary
-
Fields inherited from class fr.gouv.vitam.common.database.translators.RequestToAbstract
requestParser
-
-
Constructor Summary
Constructors Constructor Description SelectToElasticsearch(AbstractParser<?> selectParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.elasticsearch.search.sort.SortBuilder<?>>
getFinalOrderBy(boolean score, DynamicParserTokens parserTokens)
FindIterable.sort(orderby) for Elasticsearch-
Methods inherited from class fr.gouv.vitam.common.database.translators.elasticsearch.RequestToElasticsearch
getInitialRoots, getNthQueries, getRequest, getRequestToElasticsearch
-
Methods inherited from class fr.gouv.vitam.common.database.translators.RequestToAbstract
getFinalLimit, getFinalOffset, getHints, getLastDepth, getNbQueries, getNthQuery, getRequest, getRequestParser, getUsage, hasFullTextQuery, hintCache, hintNoTimeout, isMultiple, model
-
-
-
-
Constructor Detail
-
SelectToElasticsearch
public SelectToElasticsearch(AbstractParser<?> selectParser)
- Parameters:
selectParser
- AbstractParser of unknown type
-
-
Method Detail
-
getFinalOrderBy
public java.util.List<org.elasticsearch.search.sort.SortBuilder<?>> getFinalOrderBy(boolean score, DynamicParserTokens parserTokens)
FindIterable.sort(orderby) for Elasticsearch- Parameters:
score
- True to use if necessary score from ES- Returns:
- the orderBy Elasticsearch command
-
-