IDOL Server 12.13

# FieldRestriction

The names of fields that the query terms must occur in. IDOL Server applies this field restriction to any terms in the query text that do not already have an explicit field restriction. The action matches only documents that contain the query terms in one of the specified fields.

To specify that the fields in the `FieldRestriction` parameter are the only fields that the query can use in the matching process for both the Text and FieldText action parameters, set HardFieldRestriction to `True`.

In complex expressions, IDOL Server applies the `FieldRestriction` parameter after all other field restrictions in the expression. For example:

    Text=frog+(fish+toad:AMPHIBIAN):VERTEBRATE&FieldRestriction=ANIMAL

is equivalent to the following expression:

    Text=frog:ANIMAL+(fish:VERTEBRATE+toad:AMPHIBIAN)

In this example, if you also set HardFieldRestriction to `True`, the action returns results only for the `frog:ANIMAL` term and restriction.

Actions: | GetContent GetQueryTagValues Highlight Query
Type: | String
Default: |
Example: | `FieldRestriction=CREATURE:FAUNA` In this example, if the query text is `cat+dog:ANIMAL+rabbit`, the specified `FieldRestriction` applies to the terms `cat` and `rabbit`, but not to the term `dog` (because it already has a field restriction). The query returns only documents that contain the value `dog` in an `ANIMAL` field, the value `cat` in a `CREATURE` or `FAUNA` field or the value `rabbit` in a `CREATURE` or `FAUNA` field.
See Also: | HardFieldRestriction

© 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 Server 12.13

Topic Title: FieldRestriction