Search

CB comes with a search template type. Each field of a search template acts like a filter. All filters are joined with AND operand and a SOLR request is made.

A search form looks exactly as a new object, with the addition of a middle "Condition" column. Fields are usually copy&pasted from object templates (unless a search template encompass several templates). Make sure each field has a solr_column_name, or there is custom logic that use the field to affect the search results.

Search conditions

A search form will appear with the Condition column hidden. To set a default condition for a field, specify 'cond' in search field cfg

Available search conditions:
<= Less then or equal. For multiValued 'object' fields, this is equivalent to 'Contains any' condition
>= Greater then or equal. For multiValued 'object' fields, this is equivalent to 'Contains all' condition
= Equal. For multi'object' fields, this is equivalent to 'Contains all' condition
!= Not equal

For multiValued object fields, the above conditions have this meaning

<= Contains any
>= Contains all
= Selected values in search conditions are exactly the same as the multiValued field
!= Not equal, i.e. none of the selected values is present

Configuration options available in search templates

In a search template JSON config the following options are available:

"createMenu": "id1,-,id2,id3" the menu available in search results
Copyright (C) KETSE, HURIDOCS