Gravatar for dsoriano@littelfuse.com

Question by Dean, Mar 29, 2016 11:47 AM

Stop requests for empty search

Hi,

We are trying to limit the traffic from bots/crawlers to our search page and was wondering if there is a way for the Coveo search page to stop serving the requests if the search text is empty i.e. just /search-results.aspx. Knowing that the Coveo search basically rely on anchors (#) instead of query strings (?), we cannot really put a rule in our web server to block requests coming to our search page based from the .

Correct me if I'm wrong, but we do get a lot of "query node type 'Custom' is not supported" warning messages in our logs which we think is attributed to those empty search requests.

Thanks

1 Reply
Gravatar for sbelzile@coveo.com

Answer by Sébastien Belzile, Mar 29, 2016 4:52 PM

There is an option on the JS framework to prevent initialization from launching a query: autoTriggerQuery. If you set this option to false, make sure to set the hideUntilFirstQuery option to false as well. Both these options are fronted on the CoveoSearch component in C4SC.

The "query node type 'Custom' is not supported" is usually a LINQ query issue and is not related to the JS UI.

Ask a question