Project

General

Profile

Query » History » Version 3

Alison Craig, 03/03/2015 02:17 PM

1 1 Alison Craig
Query
2
=====
3
For the Query Protocol, the user will send messages of the format: <tt>[field1]=[search1],[field2]=[search2],?=[search3]</tt>, where <tt>field1</tt> and <tt>field2</tt> are Name components, <tt>?</tt> indicates an autocomplete search, and <tt>search*</tt> is what to use for searching on. <i>(See [[Schema]])</i>
4
5
In response, the Query backend of the Catalog will make Data available that includes a list of names that match the query.
6
7
----
8
9
<b>TLV Formats</b>
10
11
<b><i>Query Interest TLV</b></i>
12
<ul>
13
  <li>Type = Interest (0x05)</li>
14
  <li>Length</li>
15
  <li><ul>Value
16 2 Alison Craig
    <li>Type = <tt>[field|?]</tt> (32768+) </li>
17 1 Alison Craig
    <li>Length = 2000 bytes (Want enough room for search)</li>
18 2 Alison Craig
    <li>Value = <tt>[search]</tt></li>
19 1 Alison Craig
  </ul>
20
  </li>
21
</ul>
22 3 Alison Craig
23
<b><i>Query Results Data TLV</b></i>
24
The Query results TLV Data matches the Query Interest TLV. It has an added payload of the List of Names that match the Query.