Project

General

Profile

Actions

Query » History » Revision 8

« Previous | Revision 8/29 (diff) | Next »
Alison Craig, 03/03/2015 02:56 PM


Query

The Query parameter are named as

//

For the Query Protocol, the user will send messages of the format: [field1]=[search1],[field2]=[search2],?=[search3], where field1 and field2 are Name components, ? indicates an autocomplete search, and search* is what to use for searching on. (See Schema)

In response, the Query backend of the Catalog will make Data available that includes a list of names that match the query.


TLV Formats

Query Interest TLV

Type = Interest (0x05)
Length
Value
Type = [field|?] (32768+)
Length = 2000 bytes (Want enough room for search)
Value = [search]

Query Results Data TLV

The Query results TLV Data matches the Query Interest TLV. It has an added Blob (or payload) of the List of Names that match the Query. This Blob is defined by a second TLV such that we have either Name results:

Type = Name (0x07)
Length = 4000
Value = Name

or next fields (with an autocomplete)

Type = [?]
Length = 4000
Value = Possible next field

Updated by Alison Craig over 9 years ago · 29 revisions