Gravatar for jpdery@coveo.com

Question by jpdery, May 23, 2014 11:18 AM

What is "Enable Non-Contextual Search" & "Contextual Query" in Coveo Insight Box?

Can you point to documentation. Can't find it. I don't see what this does.

As of now, my whole expression is in Filter/Base Expression, but: What is the use of check box Enable Non-Contextual Search What is the use of Contextual Query tab?

2 Replies
Gravatar for apare@coveo.com

Answer by Alexandre Paré, May 23, 2014 11:27 AM

In the salesforce box you have 2 query parts. The filter and the contextual query.

  • The filter query is use the select a particular type of items. Example: @objecttype=="case".

  • the contextual query is use to select the item related to the current object. Example: @sfcaseid={!>id}

If you check Enable Non-Contextual Search and you type a search in the panel, the checkbox Show only contextual results will appear. If you unselect it, this will remove @sfcaseid={!>id} from the query.

Gravatar for mlaporte@coveo.com

Answer by Martin Laporte, May 23, 2014 11:27 AM

It's a recent feature, and hasn't yet been added to the online help. It is used to allow searching all available documents in the side panel, vs only those that are matching the "contextual" query for the current case (for example).

So, you'd use the Base Expression to define a base filter (ex: I want to see only KB articles, stuff like that), and then in the Contextual part you put the expressions that are using case fields to try and match related items.

When Non-Contextual search is enabled, as soon as the user enter keywords int the query box he'll be offered to "remove" the contextual part of the query in order to search everything matching the base expression.

Gravatar for jpdery@coveo.com

Comment by jpdery, May 23, 2014 11:37 AM

(I liked your answer too, but I like competition so I voted for the underdog ;)

Ask a question