Delete Single field from the index


(Sumit Guptaa) #1

hi all,

can anybody tell me the procedure of deleting the single field from the index...

suppose we have 10 fields in one index and we want to delete one field from the index how we can implement this in Elastic Search?

thanx in advance

Regards,
Sumit Gupta


(David Pilato) #2

1 Get the first version of your doc
2 remove the field
3 push this new version of your doc.

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 7 juin 2012 à 10:33, Sumit Guptaa sumit.gupta.ngi@gmail.com a écrit :

hi all,

can anybody tell me the procedure of deleting the single field from the
index...

suppose we have 10 fields in one index and we want to delete one field from
the index how we can implement this in Elastic Search?

thanx in advance

Regards,
Sumit Gupta

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Delete-Single-field-from-the-index-tp4018900.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(Sumit Guptaa) #3

hi dadoonet

i think this is require further reindexing i don't want reindexing of my document.....

Regards,
Sumit Gupta


(Alexander Reelsen) #4

Hi

On Thu, Jun 7, 2012 at 3:35 PM, Sumit Guptaa sumit.gupta.ngi@gmail.comwrote:

hi dadoonet

i think this is require further reindexing i don't want reindexing of my
document.....

Single field indexing is not possible with lucene at the moment. Neither it
is with elasticsearch then of course.

Check out https://github.com/medcl/elasticsearch-partialupdate for a simple
support for this (which again is working with delete/create in the
background).

--Alexander


(Sumit Guptaa) #5

hi Alexander Reelsen-2

i just want to delete a single field from my document in index ....is it possible with elasticsearch or not?

thanx

Regards,
Sumit Gupta


(Rafał Kuć) #6

Hello!

By default it's not possible, because right now Lucene doesn't support
that. Basically you can only put or remove whole Lucene documents from
Lucene indices.

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

hi Alexander Reelsen-2

i just want to delete a single field from my document in index ....is it
possible with elasticsearch or not?

thanx

Regards,
Sumit Gupta

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Delete-Single-field-from-the-index-tp4018900p4018955.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(Sumit Guptaa) #7

thanx Rafał Kuć-3


(Rafał Kuć) #8

Hello!

You have to do it by yourself, see - http://support.google.com/groups/bin/answer.py?hl=en&answer=46608

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

Please remove me from this group.


The information contained in this message is proprietary and/or
confidential. If you are not the intended recipient, please: (i)
delete the message and all copies; (ii) do not disclose, distribute
or use the message in any manner; and (iii) notify the sender
immediately. In addition, please be aware that any message addressed
to our domain is subject to archiving and review by persons other
than the intended recipient. Thank you.


(system) #9