ruby on rails - Elasticsearch hide attribute tire -
the results sent elasticsearch contain attributes generic elasticsearch. example of json returned rails server.
{ locality_name: "some text", locality_details: "some text", _score: null, _type: "locality", _index: "localities", _version: null, sort: [ 1.0860322703674736 ], highlight: null, _explanation: null }
as can observe,the major content of result being transferred occupied default attributes of elasticsearch such _score,_sort,_explanation.
i believe suppressing behaviour result in lower size of json object being returned in result , hence improvement in performance. elasticsearch provide such functionality? how tire incorporate functionality?
i think looking fields
parameter: http://www.elasticsearch.org/guide/reference/api/search/fields/
Comments
Post a Comment