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_TYPEfield contains the value record:MATCH{record}:DOCUMENT_TYPE -
To match documents whose
FILETYPEfield contains one of the values pdf, doc, or txt:MATCH{pdf,doc,txt}:FILETYPE -
To match documents whose
DIRorDIRECTORYfield 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
SCORE1is greater than .95 andSCORE2is less than .85:GREATER{.95}:SCORE1+AND+LESS{.85}:SCORE2 -
To match documents that have a
COUNTfield, regardless of its value:EXISTS{}:COUNT -
To match documents whose
BRANDfield contains tech as a substring:STRING{tech}:BRAND -
To match documents whose
EMOTIONfield contains a string that has the same stem as the word loving.TERM{loving}:EMOTIONFor example, if the
EMOTIONfield has any of the values love, loving, loves, or lover, the document matches. -
To match documents whose position (stored in the
LATandLONGfields) 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_DATEis 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.