# Elastic - spark : deprecated search\_type=scan showing up in post url from spark 2.4 and returning 0 hits

**URL:** <https://discuss.elastic.co/t/elastic-spark-deprecated-search-type-scan-showing-up-in-post-url-from-spark-2-4-and-returning-0-hits/166383>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [January 30, 2019, 3:03pm UTC](https://discuss.elastic.co/t/elastic-spark-deprecated-search-type-scan-showing-up-in-post-url-from-spark-2-4-and-returning-0-hits/166383 "2019-01-30T15:03:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnmarshall](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@johnmarshall](https://discuss.elastic.co/u/johnmarshall)\
**Post date:** [January 30, 2019, 3:03pm UTC](https://discuss.elastic.co/t/elastic-spark-deprecated-search-type-scan-showing-up-in-post-url-from-spark-2-4-and-returning-0-hits/166383/1 "2019-01-30T15:03:53Z")

</div>

Hi Team

Am trying to fetch data from elastic server into spark 2.4 environment using "org.elasticsearch.spark.sql" connector, but even though i got all the configs right, there is no data received on the spark engine

Using the below config to connect to Elastic from spark

![image](https://us1.discourse-cdn.com/elastic/original/3X/a/0/a0a97712ad38acd338bb092295feb70819410015.png)

On analyzing with fiddler found that the request created had a search\_type=scan param in the query string, which i guess is no longer supported

[http://NodeURL/index/type/\_search](http://NodeURL/index/type/_search)? **search\_type=scan** &scroll=5m&size=50&preference=\_shards%3A3%3B\_local

On opening this on the browser didn't receive any data, but the same query without the search\_type param worked as expected.

Am wondering when the above param is no longer supported, why is it being appended in the request url by the elasticsearch-spark connector

Can someone please help me figure out a proper solution

Spark - 2.4.0  
scala - 2.11  
elasticsearch-spark-20\_2.11 (6.6.0)

Thanks  
John

---

<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:** [January 30, 2019, 3:26pm UTC](https://discuss.elastic.co/t/elastic-spark-deprecated-search-type-scan-showing-up-in-post-url-from-spark-2-4-and-returning-0-hits/166383/3 "2019-01-30T15:26:53Z")

</div>

@james.baiera Do you 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:** [February 27, 2019, 3:26pm UTC](https://discuss.elastic.co/t/elastic-spark-deprecated-search-type-scan-showing-up-in-post-url-from-spark-2-4-and-returning-0-hits/166383/4 "2019-02-27T15:26:54Z")

</div>

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