Disabling a field


(Mark Waddle) #1

So I have discovered that you can disable an object using the "enabled"
attribute, as documented at
http://www.elasticsearch.org/guide/reference/mapping/object-type.html. Is
it possible to use this on a field? If so, if I set "enabled" : false, will
it ignore the other attributes like index and store as well?

Thanks,
Mark


(Mark Waddle) #2

So I tried setting enabled for a field and it was ignored. I guess I can do
the same thing by just saying "index" : "no".

On Tuesday, March 6, 2012 9:37:19 PM UTC-8, Mark Waddle wrote:

So I have discovered that you can disable an object using the "enabled"
attribute, as documented at
http://www.elasticsearch.org/guide/reference/mapping/object-type.html. Is
it possible to use this on a field? If so, if I set "enabled" : false, will
it ignore the other attributes like index and store as well?

Thanks,
Mark


(Shay Banon) #3

Right, just set index to "no".

On Wednesday, March 7, 2012 at 8:34 AM, Mark Waddle wrote:

So I tried setting enabled for a field and it was ignored. I guess I can do the same thing by just saying "index" : "no".

On Tuesday, March 6, 2012 9:37:19 PM UTC-8, Mark Waddle wrote:

So I have discovered that you can disable an object using the "enabled" attribute, as documented at http://www.elasticsearch.org/guide/reference/mapping/object-type.html. Is it possible to use this on a field? If so, if I set "enabled" : false, will it ignore the other attributes like index and store as well?

Thanks,
Mark


(system) #4