Is there a method can trim meaning field before they returned when I search?

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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/788a37d0-a180-4b20-8a65-d4d22de2b260%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hello Magigo ,

Use the fields feature.
You can tell which all fields you are interested in and it will return only
those fields -

Thanks
Vineeth

On Sat, Jul 5, 2014 at 3:05 PM, 纪路 magievanerv@gmail.com 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 elasticsearch+unsubscribe@googlegroups.com.
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGdPd5koOkXW5MVsXA%2BMOED%2Bi5Rmp6-DL2vx-xVt_0WuPGFdJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Also you need to start using this -

Normal fields are depreciated.

Thanks
Vineeth

On Sat, Jul 5, 2014 at 7:17 PM, vineeth mohan vm.vineethmohan@gmail.com
wrote:

Hello Magigo ,

Use the fields feature.
You can tell which all fields you are interested in and it will return
only those fields -
Elasticsearch Platform — Find real-time answers at scale | Elastic

Thanks
Vineeth

On Sat, Jul 5, 2014 at 3:05 PM, 纪路 magievanerv@gmail.com 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 elasticsearch+unsubscribe@googlegroups.com.
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 elasticsearch+unsubscribe@googlegroups.com.
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.

Hi Vineeth:

Thank for your answer, "source filtering" is very useful. About fields, it
seems that its function is different from source filtering, it can prevent
additional fields from load in the system before search, is it? The
depreciated function is partial, not fields, is my opinion right?

Thanks
Magigo

On Sat, Jul 5, 2014 at 9:49 PM, vineeth mohan vm.vineethmohan@gmail.com
wrote:

Also you need to start using this -
Elasticsearch Platform — Find real-time answers at scale | Elastic

Normal fields are depreciated.

Thanks
Vineeth

On Sat, Jul 5, 2014 at 7:17 PM, vineeth mohan vm.vineethmohan@gmail.com
wrote:

Hello Magigo ,

Use the fields feature.
You can tell which all fields you are interested in and it will return
only those fields -
Elasticsearch Platform — Find real-time answers at scale | Elastic

Thanks
Vineeth

On Sat, Jul 5, 2014 at 3:05 PM, 纪路 magievanerv@gmail.com 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 elasticsearch+unsubscribe@googlegroups.com.
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 a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/6gcjWJXV_F4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3Dtx1pcTGJv141VVnZu1-rxwzv02BbpjBe2n0CLuGFaUw%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3Dtx1pcTGJv141VVnZu1-rxwzv02BbpjBe2n0CLuGFaUw%40mail.gmail.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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAOJ-sHTxcLsCpnqsRCa5binpoz04UumQZof6UX3pxv%2Bs8TxQyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.