BoxQuerySome Component

The BoxQuerySome component is used to automatically include Salesforce fields to the query of an Insight Panel. By default, the fields are included in the advanced query (see Advanced Expression).

This component is included in the default Insight Panel to include the case subject.

Options

include

A comma separated list of fields to automatically add to the query.

The default value is Subject.

<div data-include="Subject"></div>

includeCurrentRecord

Specifies whether to include the currently viewed case in the search results.

The default value is false.

<div data-include-current-record="false"></div>

disableOnNonContextualSearch

Specifies whether to disable the added query when a user decides to perform a non-contextual search (see allowNonContextualSearch).

The default value is true.

<div data-disable-on-non-contextual-search="true"></div>

useSomeQRE

Coveo for Salesforce 2.38 (February 2017)

Specifies whether to generate the query using the $some query extension (see $some). Setting this option to false changes the query from an aq to an lq (see Large Expression), enabling Coveo Machine Learning Intelligent Term Detection (ITD).

The default value is true.

<div data-use-some-q-r-e="true"></div>

When this value is true, you can use the arguments of the $some expression (see $some).

To use them, add data- before the argument name, and replace every capital letter with a dash followed by its lowercase equivalent. For instance, removeStopWords becomes data-remove-stop-words.

The default value for removeStopWords is true.

The default value for best is 5.

Coveo for Salesforce 2.50 (December 2017)

The default value for match is 5.

Coveo for Salesforce 2.50 (December 2017)

The default value for match is 2.

Additionally, you can use the bindOnQuery argument, which specifies whether the component should use the generated query to filter items. Its default value is true.

Methods

enable

Enables the component.

$('.CoveoBoxQuerySome').coveo('enable')

disable

Disables the component.

$('.CoveoBoxQuerySome').coveo('disable')

Usage

In your search page, add a div with the CoveoBoxQuerySome class.

<div class="CoveoBoxQuerySome" data-include="Subject">
</div>
Recommended Articles