Gravatar for bberriz@lifeextension.com

Question by Ben, Aug 3, 2015 8:13 AM

No option to cancel query through event args.

I am unable to flag the cancel attribute in the arguments of any of the events listed in this link: https://developers.coveo.com/display/public/JsSearch/Events#Events-QueryEvents

The option is not available to me (always undefined).

Coveo.version Object {lib: "0.9.1146.25", product: "0.0.0.0", supportedApiVersion: 2}

1 Reply
Gravatar for sbelzile@coveo.com

Answer by Sébastien Belzile, Aug 3, 2015 9:19 AM

Hi,

I tested it with your version. This feature is available since June (0.9.1287.24).

If you want to use it, you should update your version.

Gravatar for bberriz@lifeextension.com

Comment by Ben, Aug 3, 2015 10:01 AM

The latest release of Coveo for Sitecore, as made available through this link, https://developers.coveo.com/display/public/SC201507/Installing+Coveo+for+Sitecore+on+a+Single+Host, uses version 0.9.1146.25. Is there a more recent package I should be using?

Gravatar for sbelzile@coveo.com

Comment by Sébastien Belzile, Aug 3, 2015 10:18 AM

You're right.

You have 3 options:

  1. Wait for the next release of Coveo For Sitecore, which will be using version 0.9.1287.24 of the JS UI and should be released by next week.

  2. Do without. If this is not a feature that you absolutely need and you were just trying it out.

  3. Version 0.9.1287.24 of the JS UI is available here: https://developers.coveo.com/display/public/JsSearch/Downloading. If you feel adventurous, though this is not something we recommend doing with Sitecore. This is a good idea if you want to try the feature and/or validate your code.

Gravatar for bberriz@lifeextension.com

Comment by Ben, Aug 3, 2015 10:35 AM

Thanks for the heads up. I'll wait for the next release. This feature will definitely help with the way we are handling certain certain events, and I'm looking forward to it, but of course there's plenty to do until then!

Ask a question