But if it's only to save disk space, I'm wondering if you really want to do it (complexity wise).
Are your fields very huge?
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 13 juin 2013 à 07:52, David Pilato david@pilato.fr a écrit :
For that specific need, you have to disable _source field and field by field define if you want to store it or not.
Then, when searching, ask for fields you want back.
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 13 juin 2013 à 07:44, Allan Johns nerdvegas@gmail.com a écrit :
David, I cannot.
I need to disable only certain fields from _source, not all of them.
I need to be able to search for documents via an indexed field, but not actually store that field in _source. I'm a bit surprised this isn't possible to be honest.
I feel I need to disable, ie remove, a particular field from _source because I simply never use it in that context and it is just taking up extra storage space. I only want to search based on the field - the actual value of the field is not useful to me.
Thanks,
A
On Thu, Jun 13, 2013 at 3:16 PM, David Pilato david@pilato.fr wrote:
Yes you can. See Elasticsearch Platform — Find real-time answers at scale | Elastic
{
"tweet" : {
"_source" : {"enabled" : false}
}
}
Why do you feel you need to disable it?
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 13 juin 2013 à 03:56, Allan Johns nerdvegas@gmail.com a écrit :
On further reading, the "store" property doesn't quite do what I want.
I have a field that I want to be able to search on, but I don't want it in my _source. Is this possible?
A
On Thu, Jun 13, 2013 at 11:35 AM, Allan Johns nerdvegas@gmail.com wrote:
Anyone?
I tried:
"store" : false
also, this didn't work either.
You can actually do this, right?
A
On Wed, Jun 12, 2013 at 7:07 PM, Allan Johns nerdvegas@gmail.com wrote:
I also tried this in my default-mapping.json, no luck (see template_2):
{
"default" : {
"dynamic_templates" : [
{
"template_1" : {
"match" : "folder",
"match_mapping_type" : "string",
"mapping" : {
"type" : "string",
"index" : "analyzed",
"analyzer": "gas_folder_analyzer"
}
}
},
{
"template_2" : {
"match" : "_",
"mapping" : {
"store": "no"
}
}
},
{
"template_3" : {
"match" : "",
"match_mapping_type" : "string",
"mapping" : {
"type" : "string",
"index" : "not_analyzed"
}
}
}
]
}
}
On Wed, Jun 12, 2013 at 7:01 PM, Allan Johns nerdvegas@gmail.com wrote:
I can't quite figure out from the docs how to do this. I know I need to use the exclude functionality shown here Elasticsearch Platform — Find real-time answers at scale | Elastic, but the documentation frustratingly provides the code snippets, but doesn't say where to put them.
I want to not store fields beginning with an underscore. I tried adding this to my config/elasticsearch.yml:
mapping:
MYTYPE:
source:
excludes: [ "*" ]
But this didn't work.
What do I do?
thx
A
--
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.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.