Gravatar for nangineni.1986@gmail.com

Question by anil, Apr 11, 2016 3:14 AM

Searching with Empty String

Hi All,

We are using Coveo search for one of my web site, but when I search without entering single characters search results are came. Please provide solution for this.

1 Reply
Gravatar for mlaporte@coveo.com

Answer by Martin Laporte, Apr 11, 2016 4:57 AM

This is normal, the default behavior when no query is provided it to display all the content that is scoped in the search page, so you can use facets to drill down, etc.

Gravatar for nangineni.1986@gmail.com

Comment by anil, Apr 11, 2016 5:18 AM

but when we take as example google search, without typing single keyword if we try to search it will not display search results.

Gravatar for mlaporte@coveo.com

Comment by Martin Laporte, Apr 11, 2016 5:20 AM

Well yes, but Google doesn't provide faceting…

Anyway - you might want to take a look at https://developers.coveo.com/display/public/JsSearchV1/Displaying+Results+Only+When+a+Query+Is+Made

Ask a question