# Add Field Text Restrictions

You can use the Field Text section on the Search results page to specify fields that result documents must contain, and the conditions that these fields must meet for the documents to return as results (see Set Up New Promotions). Alternatively, you can add Field Text restrictions as a promotions trigger from the Promotion Details page (see Edit Promotions).

For example:

- To match documents whose `DOCUMENT_TYPE` field contains the value record:

  `MATCH{record}:DOCUMENT_TYPE`

- To match documents whose `FILETYPE` field contains one of the values pdf, doc, or txt:

  `MATCH{pdf,doc,txt}:FILETYPE`

- To match documents whose `DIR` or `DIRECTORY` field exactly matches one of docs, archive, or work:

  `MATCH{docs,archive,work}:DIR:DIRECTORY`

- To use Boolean operators and parentheses to group FieldText restrictions:

  `MATCH{dog}:ANIMAL+AND+(MATCH{celery}:VEGETABLE+OR+NOT+MATCH{quartz}:MINERAL)`

- To match documents for which `SCORE1` is greater than .95 and `SCORE2` is less than .85:

  `GREATER{.95}:SCORE1+AND+LESS{.85}:SCORE2`

- To match documents that have a `COUNT` field, regardless of its value:

  `EXISTS{}:COUNT`

- To match documents whose `BRAND` field contains tech as a substring:

  `STRING{tech}:BRAND`

- To match documents whose `EMOTION` field contains a string that has the same stem as the word loving.

  `TERM{loving}:EMOTION`

  For example, if the `EMOTION` field has any of the values love, loving, loves, or lover, the document matches.

- To match documents whose position (stored in the `LAT` and `LONG` fields) is within a distance of 5 kilometers from the point with latitude 52.2°N and longitude 0.12° E:

  `DISTSPHERICAL{52.2,0.12,5}:LAT:LONG`

- To match documents whose `DUE_DATE` is before the current time:

  `LTNOW{}:DUE_DATE`

For more information on how to set up and use Field Text, see the IDOL Server Administration Guide, the IDOL Server Reference, and IDOL Expert.

_FT_HTML5_bannerTitle.htm