Gravatar for chris.weiss@rbaconsulting.com

Question by chrisweiss, Jun 20, 2016 1:41 PM

Search Box Search As You Type not returning anything

I've enabled Search as you Type with a delay of 500 ms (the default). However, no results are showing when typing and waiting. There doesn't appear to be any network activity and there are no JS errors showing.

If I hit enter, it will bring me to the right search page with the right search, so that's working correctly. Any ideas why no results are showing while I'm typing?

2 Replies
Gravatar for sbelzile@coveo.com

Answer by Sébastien Belzile, Jun 22, 2016 9:42 AM

Hi,

"when I try to add the Coveo Omnibox Result List component, I get an "Object reference not set to an instance of an object" " -> Answer: This is a known issue with Coveo for Sitecore 4.0 (171). It should be fixed in June.

"Search as you Type enabled does not work" -> Do you set this option from within the Coveo Search Box View? If so, it is normal that it does not work. Enabling this option in a CoveoSearchbox component would redirect you as soon as you would start typing in the box. This is why the option does not appear in the .cshtml file.

Gravatar for chris.weiss@rbaconsulting.com

Comment by chrisweiss, Jun 24, 2016 12:23 PM

Okay, thanks for that. We'll look into upgrading to the June release when we can and see what happens!

Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Jun 20, 2016 4:45 PM

Hi Chris,

For this issue, are you also using Coveo for Sitecore 4.0 (free edition) and Sitecore 8.1 Update-2?

Search as you type option is meant to be used with a result list. So when you type, it refreshes the result list. With your description, I guess you are working with a "Coveo Search Box" component. This component has a placeholder just under the search box. You can add a "Coveo Omnibox Result List" inside it. Be sure to also use the "Coveo Search Resources" component instead of the "Coveo Search Box Resources" component. The second one is only the minimum resources to display the search box without any suggestions.

I hope this helps.

Jeff

Gravatar for chris.weiss@rbaconsulting.com

Comment by chrisweiss, Jun 20, 2016 5:08 PM

Unfortunately, I have no "Coveo Search Resources". I have a "Coveo Search View Resources", though.

Also, when I try to add the Coveo Omnibox Result List component, I get an "Object reference not set to an instance of an object" error here: "Line 15: queryExpression: '@(Html.Raw(Model.AdditionalExpression))',". I've tried giving it a filter expression and leaving it blank. No dice.

Thanks for your help!

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Jun 20, 2016 5:23 PM

"Coveo Search View Resources" is perfect! It is the MVC equivalent of Web Forms "Coveo Search Resources".

A filtering rule without a condition is likely to fail like this. You should delete the filtering rule entirely if you don't plan to add any conditions to it.

Which release of Coveo for Sitecore 4.0 are you using? April 2016 (171) or June 2016 (222)?

Also, are you on a Cloud Trial, Pro Cloud, Free, Pro or Enterprise edition license?

Gravatar for chris.weiss@rbaconsulting.com

Comment by chrisweiss, Jun 21, 2016 10:30 AM

We're on the April release and are currently using the free edition, although we'll be moving to the pro version in not too long.

I'll be experimenting more with this in just a little bit.

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Jun 21, 2016 11:08 AM

With the Free edition (with an on-premises CES7 index), you're not allowed to use filtering/boosting rules directly in the properties editor of Coveo UI components. This is a feature reserved for Cloud Trial and Enterprise editions.

Even if the rule editor is displayed (it shouldn't), the rules won't be used by the control.

Gravatar for chris.weiss@rbaconsulting.com

Comment by chrisweiss, Jun 21, 2016 12:08 PM

Sadly, I'm seeing the same error. I've verified that there are no filtering rules in place.

The controls I have on the page now are:

  • Coveo Search View Resources
  • Coveo Search Box View
  • Coveo Omnibox Result List View (in the coveo-omnibox-suggestions-providers-mvc placeholder)
Ask a question