# Indices, scroll API, and Sorting related questions

**URL:** <https://discuss.elastic.co/t/indices-scroll-api-and-sorting-related-questions/119463>\
**Category:** Elasticsearch\
**Created:** [February 12, 2018, 11:56am UTC](https://discuss.elastic.co/t/indices-scroll-api-and-sorting-related-questions/119463 "2018-02-12T11:56:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hassan\_Shaitou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hassan_shaitou/32/103867_2.png) [@Hassan\_Shaitou](https://discuss.elastic.co/u/Hassan_Shaitou)\
**Post date:** [February 12, 2018, 11:56am UTC](https://discuss.elastic.co/t/indices-scroll-api-and-sorting-related-questions/119463/1 "2018-02-12T11:56:26Z")

</div>

I- Regarding indices:  
1- Why we can't create two different document types for the same index?  
2- Will creating 500 index for example affect the performance of elastic?

II- Regarding Scroll API:  
1- I want to extract a specific name (property) from elasticsearch, I paginate them with size(10000). The  
problems are:  
1.1- I want a way to parse the whole pages in NEST C#.(i.e I have 2 million records, so the number of  
pages is 200 with 10000 document each).

III- Regarding Sort:  
I have the following

```
var response = client.Search<MyObject>(s => s
			  .Index(indices)
			  .Type(types)
			  .MatchAll()
              .Sort(ss=>ss.Ascending(asc=>asc.name))
			  .Size(10000)
			  .Scroll("10m")
			  .Pretty()
			);

```

class MyObject:

```
public class MyObject
		{
			public string age { get; set; }
			public string lastname { get; set; }
			public string name { get; set; }
		}

```

I want to sort according to \_id field.

Please help and thanks in advance.

---

<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 12, 2018, 12:33pm UTC](https://discuss.elastic.co/t/indices-scroll-api-and-sorting-related-questions/119463/2 "2018-02-12T12:33:45Z")

</div>

I: read: [https://www.elastic.co/blog/removal-of-mapping-types-elasticsearch](https://www.elastic.co/blog/removal-of-mapping-types-elasticsearch)

II and III I don't really understand. May be it's more a Nest related question, which I don't know.

---

<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 12, 2018, 12:34pm UTC](https://discuss.elastic.co/t/indices-scroll-api-and-sorting-related-questions/119463/3 "2018-03-12T12:34:11Z")

</div>

Closed on March 12, 2018, 12:34pm UTC

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