Results > Search and Retrieve > Optimize Retrieval of Tagged Documents > Query Syntaxes

Query Syntaxes
Query processing time depends on the syntax that the query uses. While different syntaxes are available, some require you to create fields in a specific way.
Fastest
 
action=Query&Text=text&FieldText=EQUAL{numericalAttribute}:fieldName
In documents you create a numeric field for each category that they belong to. For example, if a document belongs to the categories France and USA:
The following query returns documents that match the specified Text and contain the value 4 in one of their Cat fields (for example, Cat1). The value 4 indicates that the documents belong to the USA category.
action=Query&Text=presidential election&FieldText=EQUAL{4}:Cat*
action=Query&Text=text&FieldText=MATCH{attribute}:fieldName
In documents you create a field for each category that they belong to. For example, if a document belongs to the categories France and USA:
The following query returns documents that match the specified Text and contain the value France in one of their Cat fields (for example, Cat1).
action=Query&Text=presidential election&FieldText=MATCH{France}:Cat*
action=Query&Text=text&FieldText=BITAND{numericalAttribute}:fieldName
In documents you create a field for the categories that they belong to. For example, if a document belongs to the categories France and USA:
The following query returns documents that match the specified Text and contain the value 10 in its Cat field. The value 10 indicates that documents must belong to the England or the USA category.
action=Query&Text=presidential election&FieldText=BITAND{10}:Cat
Slowest
 
action=Query&Text=text&FieldText=STRING{attribute}:fieldName
In documents you create a field that contains a comma-separated list of the categories that the documents belong to. For example, if a document belongs to the categories France and USA:
The following query returns documents that match the specified Text and contain the value France in their Cat field.
action=Query&Text=presidential election&FieldText=STRING{France}:Cat