IDOL Content Component 12.13

# HardFieldRestriction

Set `HardFieldRestriction` to `True` to use only the fields that you list in the FieldRestriction parameter for matching for the Text and FieldText parameters. In this case, if a field expression in the Text or FieldText parameter refers to a field that is not listed in the FieldRestriction parameter, IDOL Content Component does not match the expression.

For example, the following query does not return any result documents because the `Species` field is not listed in the FieldRestriction parameter:

    action=Query&Text=dog:Species&FieldRestriction=Animal:Zoo&HardFieldRestriction=True

The following query returns documents that contain `cat` in the `DOCUMENT/Animal` field. It does not return documents that contain only `dog` in the `METADATA/Animal` field, unless they also contain `cat` in the `DOCUMENT/Animal` field.

    action=Query&FieldText=MATCH{dog}:METADATA/Animal OR MATCH{cat}:DOCUMENT/Animal&FieldRestriction=DOCUMENT/Animal:DOCUMENT/Zoo&HardFieldRestriction=True

Actions: | GetContent GetQueryTagValues Highlight Query
Type: | Boolean
Default: | False
Example: | `HardFieldRestriction=True`
See Also: | FieldRestriction

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.13 | Last updated October 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL IDOL Content Component 12.13

Topic Title: HardFieldRestriction