Project

General

Profile

Query » History » Revision 2

Revision 1 (Alison Craig, 03/03/2015 02:14 PM) → Revision 2/29 (Alison Craig, 03/03/2015 02:14 PM)

Query 
 ===== 
 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> 

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

 ---- 

 <b>TLV Formats</b> 

 <b><i>Query Interest TLV</b></i> 
 <ul> 
   <li>Type = Interest (0x05)</li> 
   <li>Length</li> 
   <li><ul>Value 
     <li>Type = <tt>[field|?]</tt> [field|?] (32768+) </li> 
     <li>Length = 2000 bytes (Want enough room for search)</li> 
     <li>Value = <tt>[search]</tt></li> [search]</li> 
   </ul> 
   </li> 
 </ul>