How do I set Algolia to not return any results if the query is blank?
<p>I'm using the <a href="https://community.algolia.com/instantsearch.js/" rel="noreferrer">instantsearch.js</a> library provided by Algolia.</p>

<p>The behaviour I want is: if the visitor hasn't entered anything in the search box then no results are returned.</p>

<p>However, the Algolia <a href="https://www.algolia.com/doc/javascript#full-text-search-parameters" rel="noreferrer">documentation</a> states that: </p>

<blockquote>
  <p>If no query parameter is set, the textual search will match with all
  the objects.</p>
</blockquote>

<p>Is it possible to change this behaviour, while still using instantsearch.js?</p>

<p>Here is the code I currently have:</p>

<pre><code>&lt;script type="text/javascript" src="http://cdn.jsdelivr.net/instantsearch.js/1/instantsearch.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;

    window.onload = function ()
    {

        function getTemplate(templateName) {
            return document.getElementById(templateName + '-template').innerHTML;
        }

        var search = instantsearch({
            appId: '{{config["ALGOLIA_APPLICATION_ID"]}}',
            apiKey: '{{config["ALGOLIA_API_KEY"]}}',
            indexName: '{{config["ALGOLIA_INDEX_NAME"]}}',
            urlSync: true
        });

        search.addWidget(
            instantsearch.widgets.searchBox({
                container: '#search-input'
            })
        );

        search.addWidget(
            instantsearch.widgets.hits({
                container: '#hits-container',
                hitsPerPage: 10,
                templates: {
                    item: getTemplate('hit'),
                    empty: getTemplate('no-results')
                }
            })
        );

        search.start();
    };

&lt;/script&gt;
</code></pre>