Also you need to start using this -
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-source-filtering.html
Normal fields are depreciated.
Thanks
Vineeth
On Sat, Jul 5, 2014 at 7:17 PM, vineeth mohan <[email protected]>
wrote:
> Hello Magigo ,
>
> Use the fields feature.
> You can tell which all fields you are interested in and it will return
> only those fields -
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-fields.html
>
> Thanks
> Vineeth
>
>
> On Sat, Jul 5, 2014 at 3:05 PM, 纪路 <[email protected]> wrote:
>
>> Dear all:
>>
>> I have a reasonable need, but I can't find how to deal with it on es
>> official docs and books, is anyone know, please teach it to me! thank you!
>>
>> I have a large set of docs, which hold a lot of fields, such as a user
>> info page. If I want analysis the gender distribution of all of users
>> whose live in "city"="1000"(1000 is a city code), I don't need other field
>> except "city" and "gender", How can I exclude these meaningless field
>> before they are returned when I search or scan. Because there are a lots of
>> doc, If transmit the entire doc will wast many time and bandwidth, and I
>> have to trim the additional information in myself program. so, is there a
>> method can deal with problem for me? thank you.
>>
>> by magigo
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "elasticsearch" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/elasticsearch/788a37d0-a180-4b20-8a65-d4d22de2b260%40googlegroups.com
>> <https://groups.google.com/d/msgid/elasticsearch/788a37d0-a180-4b20-8a65-d4d22de2b260%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3Dtx1pcTGJv141VVnZu1-rxwzv02BbpjBe2n0CLuGFaUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.