# Elasticsearch-py

**URL:** <https://discuss.elastic.co/t/elasticsearch-py/121840>\
**Category:** Discussions en français\
**Created:** [February 28, 2018, 11:28am UTC](https://discuss.elastic.co/t/elasticsearch-py/121840 "2018-02-28T11:28:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soukaina](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@soukaina](https://discuss.elastic.co/u/soukaina)\
**Post date:** [February 28, 2018, 11:28am UTC](https://discuss.elastic.co/t/elasticsearch-py/121840/1 "2018-02-28T11:28:41Z")

</div>

Bonjour,  
j'utilise elasticsearch dans un script python pour créer un nouveau champ et l'affecter à un nouveau index à partir d'un index que j'ai crée avec logstash. Les valeurs de ce nouveau champ doivent être affectée en temps réel . Le problème c'est que quand je visualise les données du  
nouveau index, je ne vois que 10 lignes, alors que les données dans l'ancien index dépassent 1000.  
Quelqu'un a une idée sur cela?  
Merci.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 28, 2018, 11:58am UTC](https://discuss.elastic.co/t/elasticsearch-py/121840/2 "2018-02-28T11:58:44Z")

</div>

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

Je pense que tu veux dire qu'elasticsearch ne te renvoie que 10 documents quand tu appelles `_search` ?  
C'est normal.  
Il y a from et size pour ajuster la pagination.

Note que tu es limité au maximum à 10000.  
Si ton but est d'extraire beaucoup de data (plus de 10000 hits) utilise l'API scroll.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 28, 2018, 11:59am UTC](https://discuss.elastic.co/t/elasticsearch-py/121840/3 "2018-03-28T11:59:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
