Gravatar for nimishmis@yahoo.co.in

Question by nimishmis, Apr 15, 2015 9:41 AM

Cove3.0 for Sitecore

Hi ,

We recently upgraded to Sitecore 7.5 with Coveo 3.5. We are using Coveo JS Search framework for Search in our portal.

When we try search in coveo console all items are coming. But when we try search in Web UI below script error we are getting and not able to Search. Please help on this.

INFO", OmniBox, "Requesting omnibox data to all components"]0: "INFO"1: OmniBox2: "Requesting omnibox data to all components"length: 3__proto__: Array[0]
CoveoJsSearch.js:521 ["INFO", SearchEndpoint, "Listing field values", Object]
CoveoJsSearch.js:521 ["INFO", SearchEndpoint, "REST list field values successful", undefined, Object]
CoveoJsSearch.js:16153 Uncaught TypeError: Cannot read property 'length' of undefinedCoveoJsSearch.js:16153 
SuggestionForOmniBox.buildOmniBoxElementCoveoJsSearch.js:19842 
(anonymous function)jquery-1.11.1.min.js:2 jjquery-1.11.1.min.js:2 k.fireWithjquery-1.11.1.min.js:2 e.(anonymous function)
CoveoJsSearch.js:2343 (anonymous function)jquery-1.11.1.min.js:2 jjquery-1.11.1.min.js:2 k.fireWithjquery-1.11.1.min.js:2 e.(anonymous function)
CoveoJsSearch.js:2436 (anonymous function)jquery-1.11.1.min.js:2 jjquery-1.11.1.min.js:2 k.fireWithjquery-1.11.1.min.js:2 e.(anonymous function)
CoveoJsSearch.js:2095 EndpointCaller.handleSuccessCoveoJsSearch.js:2086 EndpointCaller.handleSuccessfulResponseThatMightBeAnError
CoveoJsSearch.js:2019 xmlHttpRequest.onreadystatech
Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Apr 15, 2015 9:53 AM

Something seems strange here.

First, Coveo for Sitecore uses the CoveoJsSearch.WithDependencies.min.js script file by default but you seem to be using the CoveoJsSearch.js script file in your project.

Second, The only two places where the SuggestionForOmniBox.buildOmniBoxElement function is used in the code are in the TopAnalyticsSuggestions and TopFieldSuggestions components. Both of them are pretty standard. Which one of those are you using in your implementation?

Can you give me more details on your Coveo JS Search Framework, Coveo for Sitecore and omnibox use?

0 Reply
Ask a question