Simple Field Restricted Search
You can use simple field restrictions within a Query action Text parameter to return results that contain specific values in specific fields. You can also combine query text with a field restriction to increase the relevance of results that contain specific values in specific fields. For these field restrictions:
-
you can use only fields that the Content component stores as
Indexfields. -
you can use Wildcards.
-
you cannot match more than one value, or a value that contains spaces or punctuation.
-
each individual field restriction must contain fewer than 512 characters.
Example Queries
action=Query&Text=cat:DRETITLE
This query returns only documents that contain the value cat in their DRETITLE field.
action=Query&Text=cat dog:DRETITLE
This query returns documents that contain the term cat in any field and the term dog in their DRETITLE field. Documents that contain either cat (in any field) or dog in their DRETITLE field also return, but with a lower relevance.
action=Query&Text=cat:CREATURE:FAUNA dog:ANIMAL
This query returns only documents that contain the value cat in their CREATURE or FAUNA field and the value dog in their ANIMAL field. Documents that contain either cat in their CREATURE or FAUNA field or dog in their ANIMAL field also return, but with a lower relevance.
action=Query&Text=engin*:Title
This query returns only documents whose title field contains the specified string (for example, engineer, engineering and so on). Note that Content expands Wildcards before it stems terms.