Hi Paulyne,

unfortunately with elasticsearch you need to update your documents
one-by-one using the Update API, I am not too familiar with pyes, but
it exposes the api as a method it seems:
http://pyes.readthedocs.org/en/latest/references/pyes.es.html?highlight=update#pyes.es.ES.update

alternatively you can just use the official python client that exposes
the api without any change from the curl:
http://elasticsearch-py.readthedocs.org/en/master/api.html#elasticsearch.Elasticsearch.update

Another alternative is just to index new version of the same document
(same index, type and id) using any api or tool you used in the first
place, that will overwrite the document in elasticsearch.

Hope this helps,
Honza

On Tue, Mar 18, 2014 at 4:40 PM, PAULINE BONNEAU
<pauline.bonneau...@gmail.com> wrote:
> Hi all,
>
> I'm new here and have a problem with a query in python. I hope someone can
> help me ,please.
>
>
> My problem is :
>
> I have some documents in an index. I would like to update some document
> fields in the index but I don't know how. If someone can help me, please
> explain me how I can do that. I work in python with pyes.
>
> If my problem is not clear, I can explain more.
>
>
> Sorry if my writing in english is not very clear :)
>
>
> Paulyne
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/5688e05c-d4f0-4492-bc3f-c68d22a9d085%40googlegroups.com.
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CABfdDiqb1D4PFwYAZFdRoUw-Za5mu%2BgXZcTT1n4wp%3DoYnkj7Nw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to