Query » History » Version 2
Alison Craig, 03/03/2015 02:14 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> |