Gravatar for rbarbedo@nonlinear.ca

Question by robertobarbedo, Jan 29, 2015 3:34 PM

Is there a pipeline or some alternative for building query not via JS?

I know I can add clauses using JavaScript like this:

Coveo.$("#search").on("buildingQuery", function(e, args) { args.queryBuilder.constantExpression.add("$qre(expression:'<%= ToCoveoFieldName("price") %> < 500', modifier:'100')"); }).coveoForSitecore("init", CoveoForSitecore.componentsOptions);

But what I really want is to add a expression to all queries in the backend. This is cause the information is a bit sensitive and I can't let users easily change the JS to bypass it.

Is there any buildingQuery pipeline?

I really appreciate any help. Tks

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Jan 29, 2015 3:49 PM

Coveo for Sitecore indexes the permissions on Sitecore items by default. Users are not allowed to retrieve search results that they don't have access to in Sitecore.

Unfortunately, we don't have a pipeline that allows REST queries modification.

Ask a question