# Elastic return json

**URL:** <https://discuss.elastic.co/t/elastic-return-json/2465>\
**Category:** Elasticsearch\
**Created:** [June 11, 2015, 1:12pm UTC](https://discuss.elastic.co/t/elastic-return-json/2465 "2015-06-11T13:12:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabioebner](https://avatars.discourse-cdn.com/v4/letter/f/a3d4f5/32.png) [@fabioebner](https://discuss.elastic.co/u/fabioebner)\
**Post date:** [June 11, 2015, 1:12pm UTC](https://discuss.elastic.co/t/elastic-return-json/2465/1 "2015-06-11T13:12:48Z")

</div>

Today i have this return from my elastic:

```
{
took: 4027,
timed_out: false,
_shards: {
total: 5,
successful: 5,
failed: 0
},
hits: {
total: 8495,
max_score: 5.3726206,
hits: [
{
_index: "indicador_firmas",
_type: "indicadortype",
_id: "151288",
_score: 5.3726206,
_source: {
nm_cliente_firma: "LUIS CELIO SOARES",
cd_cpf_cliente_firma: "011.462.894-72",
nr_folha_cliente: "166",
nr_livro_cliente_firma: "215",
cd_ficha_cliente_firma: 151288
}
},
{
_index: "indicador_firmas",
_type: "indicadortype",
_id: "15178",
_score: 3.175712,
_source: {
nm_cliente_firma: "CELIO LUIZ CAPISTRANO",
cd_cpf_cliente_firma: "156.778.694-49",
nr_folha_cliente: "7",
nr_livro_cliente_firma: "16",
cd_ficha_cliente_firma: 15178
}
},
{
_index: "indicador_firmas",
_type: "indicadortype",
_id: "124057",
_score: 2.66232,
_source: {
nm_cliente_firma: "LUIZ RUBENS SOARES",
cd_cpf_cliente_firma: null,
nr_folha_cliente: null,
nr_livro_cliente_firma: null,
cd_ficha_cliente_firma: 124057
}
},
{
_index: "indicador_firmas",
_type: "indicadortype",
_id: "120337",
_score: 2.631788,
_source: {
nm_cliente_firma: "LUIZ ANTONIO BITTENCOURT SOARES",
cd_cpf_cliente_firma: null,
nr_folha_cliente: null,
nr_livro_cliente_firma: null,
cd_ficha_cliente_firma: 120337
}
},
{
_index: "indicador_firmas",
_type: "indicadortype",
_id: "122417",
_score: 2.5860631,
_source: {
nm_cliente_firma: "LUIS HENRIQUE SOARES TAROUCO",
cd_cpf_cliente_firma: null,
nr_folha_cliente: null,
nr_livro_cliente_firma: null,
cd_ficha_cliente_firma: 122417
}
},
{
_index: "indicador_firmas",
_type: "indicadortype",
_id: "141837",
_score: 2.5533633,
_source: {
nm_cliente_firma: "WASHINGTON LUIS ROCHA SOARES",
cd_cpf_cliente_firma: null,
nr_folha_cliente: null,
nr_livro_cliente_firma: null,
cd_ficha_cliente_firma: 141837
}
},
{
_index: "indicador_firmas",
_type: "indicadortype",
_id: "199878",
_score: 2.5359354,
_source: {
nm_cliente_firma: "DALMO LUIZ SOARES ",
cd_cpf_cliente_firma: "000.000.000-00",
nr_folha_cliente: "",
nr_livro_cliente_firma: "",
cd_ficha_cliente_firma: 199878
}
},
{
_index: "indicador_firmas",
_type: "indicadortype",
_id: "212263",
_score: 2.5098064,
_source: {
nm_cliente_firma: "LUIZ CARLOS SOARES NUNES",
cd_cpf_cliente_firma: "555.555.555-55",
nr_folha_cliente: "",
nr_livro_cliente_firma: "",
cd_ficha_cliente_firma: 212263
}
},
{
_index: "indicador_firmas",
_type: "indicadortype",
_id: "191309",
_score: 2.5098064,
_source: {
nm_cliente_firma: "WASHINGTON LUIS ROCHA SOARES",
cd_cpf_cliente_firma: "555.555.555-55",
nr_folha_cliente: null,
nr_livro_cliente_firma: null,
cd_ficha_cliente_firma: 191309
}
},
{
_index: "indicador_firmas",
_type: "indicadortype",
_id: "232818",
_score: 2.5072696,
_source: {
nm_cliente_firma: "FABIO LUIS SOARES",
cd_cpf_cliente_firma: "555.555.555-55",
nr_folha_cliente: "",
nr_livro_cliente_firma: "",
cd_ficha_cliente_firma: 232818
}
}
]
}
}

```

Can i modify this return? i only want to return the hits with the results

tks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:08am UTC](https://discuss.elastic.co/t/elastic-return-json/2465/2 "2017-07-06T00:08:10Z")

</div>


