JBoss.orgCommunity Documentation

Search with constraints

This search enables you to search with more constraints to limit the returned results.

Extra search constraints are entered in the Advanced Search tab of the Advanced Search form.

The Current location field is not editable. It shows the path selected to search.

  1. Enter search terms in the A word of phrase in content field.

  2. Select the Operator.

  3. Click Show/Hide Constraint Form to add more constraints.

    A further constraint options window will appear.

    Details:


  4. Select the constraint operator (AND/OR).

  5. Add the required constraints using one of the following methods:

  6. Click Add to add any/all activated constraints.

    The constraints will be converted to an SQL query and displayed in the search form.

    • Remove unnecessary constraints by clicking trash can.

  7. Click Search to launch the search. Results will be displayed in the Search Results tab.

  8. Click Save and put a name for this search configuration if you want to save it to use at another time.

There are some methods to add the required constraints as follows:

Add a constraint for exact values

  1. Tick the checkbox that corresponds to the constraint you want.

  2. Enter the property you want to locate, or click "Add property" .

    A list of possible properties appears.

  3. Select a property from the list and click Add. The selected property will populate Property field.

  4. Define the property value to search for by entering a value into the Contain Exactly field, or click Find exactly.

    The Filter Form will appear.

    All pre-existing values for your selected property will appear.

Add a constraint including or excluding values

  1. Tick the checkbox corresponding to the Contain or Not Contain constraint, as appropriate.

  2. Enter the required property in the Property field, or click Add Property (refer to Step 2 in the Add a constraint for exact values section for more information).

  3. Enter the required values in the Contain or Not Contain fields.

Add a constraint by date

  1. Tick the checkbox beside the field with the drop-down menu (below the Property entries).

  2. Define the search condition from the drop-down list (CREATED/MODIFIED).

  3. Click in the From field.

    A small calendar will appear.

    Select the date you want to use as a constraint.

  4. Repeat the above steps for the To field.

    The selected dates will populate the From and To fields in the Add constraint form.

Add a constraint by document type

  1. Tick the checkbox beside the Document Type field.

  2. Enter the document type you want to search, or click "Add node type" to open a list of document types.

  3. Tick the checkbox corresponding to your desired document type, then click Save.

    The selected document type will populate the Document Type field.

Add a constraint by category

  1. Tick the checkbox beside the Category field.

  2. Enter the category you want to search, or click "Add category" for a list of categories.

  3. Click green tick that corresponds to your desired category.

    The selected category will populate the Category field.