In fleet indexing, you use a query syntax to specify queries.
Supported featuresThe query syntax supports the following features:
Terms and phrases
Searching fields
Prefix search
Range search
Boolean operators AND
, OR
, NOT
, and â
. The hyphen is used to exclude something from search results (for example, thingName:(tv* AND -plasma)
).
Grouping
Field grouping
Escaping special characters (such as with \)
The query syntax doesn't support the following features:
Leading wildcard search (such as "*xyz"), but searching for "*" matches all things
Regular expressions
Boosting
Ranking
Fuzzy searches
Proximity search
Sorting
Aggregation
Special characters: `
, @
, #
, %
, \
, /
, '
, ;
, and ,
. Note that ,
is only supported in geoqueries.
A few things to note about the query language:
The default operator is AND. A query for "thingName:abc thingType:xyz"
is equivalent to "thingName:abc AND thingType:xyz"
.
If a field isn't specified, AWS IoT searches for the term in all the registry, Device Shadow, and Device Defender fields.
All field names are case sensitive.
Search is case insensitive. Words are separated by white-space characters as defined by Java's Character.isWhitespace(int)
.
Indexing of Device Shadow data (unnamed shadows and named shadows) includes reported, desired, delta, and metadata sections.
Device shadow and registry versions aren't searchable, but are present in the response.
The maximum number of terms in a query is twelve.
The special character ,
is only supported in geoqueries.
Querying for aggregate data
Example thing queries
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4