Is there an equivalent of a Solr RequestHandler in Elasticsearch? -
i assessing if can move our solr based backend elasticsearch.
however, can't seem work out if there equivalent capability of custom request handler configure in solr (as configured in solrconfig.xml) in elasticsearch.
for context, in our solr configuration, have number of statically defined request handlers set of pre-configured facets, ranged facets, facet pivots. akin below, configured in solrconfig.xml:
<requesthandler name="/foo" class="solr.searchhandler"> <lst name="defaults"> <str name="fl"> field1, field2 </fl> <str name="facet.field">bar</str> <str name='facet.range'>range_facet</str> <str name='f.range_facet.facet.range.start'>0</str> <str name='f.range_facet.facet.range.end'>10</str> <str name='f.range_facet.facet.range.gap'>1</str> </lst> </requesthandler>
i set of documents directly requesthandler http://solr-host:8983/solr/collection-name/foo?q=*:*
, solr return document set desired field , facets. fundamentally, application executing query not need aware of (or configured to) request returned elements @ time of query.
my question - in elasticsearch, there ability configure endpoint return desired aggregations and/or fields without having post api @ time of query?
there article this, https://sematext.com/blog/2014/04/29/parametrizing-queries-in-solr-and-elasticsearch/ . elastic search uses templates in place of handlers make query calls associated search .there number of stored templates available use . see documentation here template query
Comments
Post a Comment