<p dir="auto">elasticsearch - 0.90.2</p>
<p dir="auto">/opt/elasticsearch-0.90.2 # bin/plugin --url /opt/mobz-elasticsearch-head-0c2ac0b.zip --install head<br>
Usage:<br>
-u, --url     [plugin location]   : Set exact URL to download the plugin from<br>
-i, --install [plugin name]       : Downloads and installs listed plugins [*]<br>
-r, --remove  [plugin name]       : Removes listed plugins<br>
-l, --list                        : List installed plugins<br>
-v, --verbose                     : Prints verbose messages<br>
-h, --help                        : Prints this help message</p>
<p dir="auto">[*] Plugin name could be:<br>
elasticsearch/plugin/version for official elasticsearch plugins (download from download.elasticsearch.org)<br>
groupId/artifactId/version   for community plugins (download from maven central or oss sonatype)<br>
username/repository          for site plugins (download from github master)</p>
<p dir="auto">Message:<br>
Command [--url] unknown.</p>
<p dir="auto">may be duplicate of or related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="27822054" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/5170" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/5170/hovercard" href="https://github.com/elastic/elasticsearch/pull/5170">#5170</a></p>
<p dir="auto">using elasticsearch 1.0.0</p>
<p dir="auto">I have a query where I would like to use search_type=scan to  scroll through all contacts owned by a user. It works fine if the user has enough contacts but I have one user where there are only two contacts and this fails.</p>
<p dir="auto">So I do a GET on<br>
<a href="http://localhost:9200/users/contact/_search?search_type=scan&amp;scroll=60m&amp;size=100" rel="nofollow">http://localhost:9200/users/contact/_search?search_type=scan&amp;scroll=60m&amp;size=100</a><br>
{<br>
"query": {<br>
"term": {<br>
"userId": {<br>
"value": "1o"<br>
}<br>
}<br>
}<br>
}</p>
<p dir="auto">I get back the following response<br>
{<br>
"_scroll_id":"c2Nhbjs1OzIwMTpxS1hwWW80MFJvV0hwbjdBcm5JRkF3OzIwNDpxS1hwWW80MFJvV0hwbjdBcm5JRkF3OzIwMzpxS1hwWW80MFJvV0hwbjdBcm5JRkF3OzIwMjpxS1hwWW80MFJvV0hwbjdBcm5JRkF3OzIwNTpxS1hwWW80MFJvV0hwbjdBcm5JRkF3OzE7dG90YWxfaGl0czoyOw==",<br>
"took":1,<br>
"timed_out":false,<br>
"_shards":{<br>
"total":5,<br>
"successful":5,<br>
"failed":0<br>
},<br>
"hits":{<br>
"total":2,<br>
"max_score":0.0,<br>
"hits":[</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    ]
}"><pre class="notranslate"><code class="notranslate">    ]
}
</code></pre></div>
<p dir="auto">}</p>
<p dir="auto">and then <a href="http://localhost:9200/_search/scroll?scroll=60m" rel="nofollow">http://localhost:9200/_search/scroll?scroll=60m</a><br>
c2Nhbjs1OzIwMTpxS1hwWW80MFJvV0hwbjdBcm5JRkF3OzIwNDpxS1hwWW80MFJvV0hwbjdBcm5JRkF3OzIwMzpxS1hwWW80MFJvV0hwbjdBcm5JRkF3OzIwMjpxS1hwWW80MFJvV0hwbjdBcm5JRkF3OzIwNTpxS1hwWW80MFJvV0hwbjdBcm5JRkF3OzE7dG90YWxfaGl0czoyOw==</p>
<p dir="auto">fails with a SearchContextMissingException</p>
<p dir="auto">The same query for a user with 30000 contacts works fine and pages through the results like I would expect.  The above query returns the two results normally if I query without search_type=scan</p>
<p dir="auto">So it only fails if the result set is smaller than the page size</p>