Query » History » Version 1
Alison Craig, 03/03/2015 02:14 PM
Initial writeup
| 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 | <li>Type = [field|?] (32768+) </li> |
||
| 17 | <li>Length = 2000 bytes (Want enough room for search)</li> |
||
| 18 | <li>Value = [search]</li> |
||
| 19 | </ul> |
||
| 20 | </li> |
||
| 21 | </ul> |