Search

Searching using keywords

Here are the invocation attributes you use to search with keywords:

Attribute Value
Target ID

sys.search

Action

bb.action.OPEN

MIME type

All supported files 

URI

search://?term=<keywords>, where keywords are free-form text

Integrating your app with the Search app

To display your app in the Extended Search section of the Search application, here's how you can specify your app in the config.xml file:

<invoke-target id="com.xyz.test">
<invoke-target-type>APPLICATION</invoke-target-type>
<filter>
<action>bb.action.SEARCH.EXTENDED</action>
<mime-type>application/vnd.bb.search.criteria</mime-type>
</filter>
</invoke-target>

When your app is registered, the Search application displays your app in the Extended Search section using your app’s name and icon. Your application recieves any search requests via invocation requests. The search string is delivered in the data attribute of the request and is in UTF-8 format.

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus