engine_overview.html 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Engine overview &mdash; searx 0.9.0 documentation</title>
  7. <link rel="stylesheet" href="../_static/style.css" type="text/css" />
  8. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '../',
  12. VERSION: '0.9.0',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="../_static/jquery.js"></script>
  19. <script type="text/javascript" src="../_static/underscore.js"></script>
  20. <script type="text/javascript" src="../_static/doctools.js"></script>
  21. <link rel="top" title="searx 0.9.0 documentation" href="../index.html" />
  22. <link rel="next" title="Search API" href="search_api.html" />
  23. <link rel="prev" title="How to contribute" href="contribution_guide.html" />
  24. <link media="only screen and (max-device-width: 480px)" href="../_static/small_flask.css" type= "text/css" rel="stylesheet" />
  25. <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
  26. </head>
  27. <body role="document">
  28. <div class="document">
  29. <div class="documentwrapper">
  30. <div class="bodywrapper">
  31. <div class="body" role="main">
  32. <div class="section" id="engine-overview">
  33. <h1><a class="toc-backref" href="#id2">Engine overview</a><a class="headerlink" href="#engine-overview" title="Permalink to this headline">¶</a></h1>
  34. <p>searx is a <a class="reference external" href="https://en.wikipedia.org/wiki/Metasearch_engine">metasearch-engine</a>,
  35. so it uses different search engines to provide better results.</p>
  36. <p>Because there is no general search API which could be used for every
  37. search engine, an adapter has to be built between searx and the
  38. external search engines. Adapters are stored under the folder
  39. <a class="reference external" href="https://github.com/asciimoo/searx/tree/master/searx/engines">searx/engines</a>.</p>
  40. <div class="contents topic" id="contents">
  41. <p class="topic-title first">Contents</p>
  42. <ul class="simple">
  43. <li><a class="reference internal" href="#engine-overview" id="id2">Engine overview</a><ul>
  44. <li><a class="reference internal" href="#general-engine-configuration" id="id3">general engine configuration</a><ul>
  45. <li><a class="reference internal" href="#engine-file" id="id4">engine file</a></li>
  46. <li><a class="reference internal" href="#settings-yml" id="id5">settings.yml</a></li>
  47. <li><a class="reference internal" href="#overrides" id="id6">overrides</a></li>
  48. <li><a class="reference internal" href="#example-code" id="id7">example code</a></li>
  49. </ul>
  50. </li>
  51. <li><a class="reference internal" href="#making-a-request" id="id8">making a request</a><ul>
  52. <li><a class="reference internal" href="#passed-arguments" id="id9">passed arguments</a></li>
  53. <li><a class="reference internal" href="#parsed-arguments" id="id10">parsed arguments</a></li>
  54. <li><a class="reference internal" href="#id1" id="id11">example code</a></li>
  55. </ul>
  56. </li>
  57. <li><a class="reference internal" href="#returned-results" id="id12">returned results</a><ul>
  58. <li><a class="reference internal" href="#default" id="id13">default</a></li>
  59. <li><a class="reference internal" href="#images" id="id14">images</a></li>
  60. <li><a class="reference internal" href="#videos" id="id15">videos</a></li>
  61. <li><a class="reference internal" href="#torrent" id="id16">torrent</a></li>
  62. <li><a class="reference internal" href="#map" id="id17">map</a></li>
  63. </ul>
  64. </li>
  65. </ul>
  66. </li>
  67. </ul>
  68. </div>
  69. <div class="section" id="general-engine-configuration">
  70. <h2><a class="toc-backref" href="#id3">general engine configuration</a><a class="headerlink" href="#general-engine-configuration" title="Permalink to this headline">¶</a></h2>
  71. <p>It is required to tell searx the type of results the engine provides. The
  72. arguments can be set in the engine file or in the settings file
  73. (normally <code class="docutils literal"><span class="pre">settings.yml</span></code>). The arguments in the settings file override
  74. the ones in the engine file.</p>
  75. <p>It does not matter if an option is stored in the engine file or in the
  76. settings. However, the standard way is the following:</p>
  77. <div class="section" id="engine-file">
  78. <h3><a class="toc-backref" href="#id4">engine file</a><a class="headerlink" href="#engine-file" title="Permalink to this headline">¶</a></h3>
  79. <table border="1" class="docutils">
  80. <colgroup>
  81. <col width="30%" />
  82. <col width="15%" />
  83. <col width="55%" />
  84. </colgroup>
  85. <thead valign="bottom">
  86. <tr class="row-odd"><th class="head">argument</th>
  87. <th class="head">type</th>
  88. <th class="head">information</th>
  89. </tr>
  90. </thead>
  91. <tbody valign="top">
  92. <tr class="row-even"><td>categories</td>
  93. <td>list</td>
  94. <td>pages, in which the engine is working</td>
  95. </tr>
  96. <tr class="row-odd"><td>paging</td>
  97. <td>boolean</td>
  98. <td>support multible pages</td>
  99. </tr>
  100. <tr class="row-even"><td>language_support</td>
  101. <td>boolean</td>
  102. <td>support language choosing</td>
  103. </tr>
  104. <tr class="row-odd"><td>time_range_support</td>
  105. <td>boolean</td>
  106. <td>support search time range</td>
  107. </tr>
  108. </tbody>
  109. </table>
  110. </div>
  111. <div class="section" id="settings-yml">
  112. <h3><a class="toc-backref" href="#id5">settings.yml</a><a class="headerlink" href="#settings-yml" title="Permalink to this headline">¶</a></h3>
  113. <table border="1" class="docutils">
  114. <colgroup>
  115. <col width="17%" />
  116. <col width="14%" />
  117. <col width="68%" />
  118. </colgroup>
  119. <thead valign="bottom">
  120. <tr class="row-odd"><th class="head">argument</th>
  121. <th class="head">type</th>
  122. <th class="head">information</th>
  123. </tr>
  124. </thead>
  125. <tbody valign="top">
  126. <tr class="row-even"><td>name</td>
  127. <td>string</td>
  128. <td>name of search-engine</td>
  129. </tr>
  130. <tr class="row-odd"><td>engine</td>
  131. <td>string</td>
  132. <td>name of searx-engine (filename without .py)</td>
  133. </tr>
  134. <tr class="row-even"><td>shortcut</td>
  135. <td>string</td>
  136. <td>shortcut of search-engine</td>
  137. </tr>
  138. <tr class="row-odd"><td>timeout</td>
  139. <td>string</td>
  140. <td>specific timeout for search-engine</td>
  141. </tr>
  142. </tbody>
  143. </table>
  144. </div>
  145. <div class="section" id="overrides">
  146. <h3><a class="toc-backref" href="#id6">overrides</a><a class="headerlink" href="#overrides" title="Permalink to this headline">¶</a></h3>
  147. <p>A few of the options have default values in the engine, but are
  148. often overwritten by the settings. If <code class="docutils literal"><span class="pre">None</span></code> is assigned to an option
  149. in the engine file, it has to be redefined in the settings,
  150. otherwise searx will not start with that engine.</p>
  151. <p>The naming of overrides is arbitrary. But the recommended
  152. overrides are the following:</p>
  153. <table border="1" class="docutils">
  154. <colgroup>
  155. <col width="24%" />
  156. <col width="10%" />
  157. <col width="66%" />
  158. </colgroup>
  159. <thead valign="bottom">
  160. <tr class="row-odd"><th class="head">argument</th>
  161. <th class="head">type</th>
  162. <th class="head">information</th>
  163. </tr>
  164. </thead>
  165. <tbody valign="top">
  166. <tr class="row-even"><td>base_url</td>
  167. <td>string</td>
  168. <td>base-url, can be overwritten to use same engine on other URL</td>
  169. </tr>
  170. <tr class="row-odd"><td>number_of_results</td>
  171. <td>int</td>
  172. <td>maximum number of results per request</td>
  173. </tr>
  174. <tr class="row-even"><td>language</td>
  175. <td>string</td>
  176. <td>ISO code of language and country like en_US</td>
  177. </tr>
  178. <tr class="row-odd"><td>api_key</td>
  179. <td>string</td>
  180. <td>api-key if required by engine</td>
  181. </tr>
  182. </tbody>
  183. </table>
  184. </div>
  185. <div class="section" id="example-code">
  186. <h3><a class="toc-backref" href="#id7">example code</a><a class="headerlink" href="#example-code" title="Permalink to this headline">¶</a></h3>
  187. <div class="code python highlight-default"><div class="highlight"><pre><span class="c"># engine dependent config</span>
  188. <span class="n">categories</span> <span class="o">=</span> <span class="p">[</span><span class="s">&#39;general&#39;</span><span class="p">]</span>
  189. <span class="n">paging</span> <span class="o">=</span> <span class="k">True</span>
  190. <span class="n">language_support</span> <span class="o">=</span> <span class="k">True</span>
  191. </pre></div>
  192. </div>
  193. </div>
  194. </div>
  195. <div class="section" id="making-a-request">
  196. <h2><a class="toc-backref" href="#id8">making a request</a><a class="headerlink" href="#making-a-request" title="Permalink to this headline">¶</a></h2>
  197. <p>To perform a search an URL have to be specified. In addition to
  198. specifying an URL, arguments can be passed to the query.</p>
  199. <div class="section" id="passed-arguments">
  200. <h3><a class="toc-backref" href="#id9">passed arguments</a><a class="headerlink" href="#passed-arguments" title="Permalink to this headline">¶</a></h3>
  201. <p>These arguments can be used to construct the search query. Furthermore,
  202. parameters with default value can be redefined for special purposes.</p>
  203. <table border="1" class="docutils">
  204. <colgroup>
  205. <col width="21%" />
  206. <col width="11%" />
  207. <col width="68%" />
  208. </colgroup>
  209. <thead valign="bottom">
  210. <tr class="row-odd"><th class="head">argument</th>
  211. <th class="head">type</th>
  212. <th class="head">default-value, information</th>
  213. </tr>
  214. </thead>
  215. <tbody valign="top">
  216. <tr class="row-even"><td>url</td>
  217. <td>string</td>
  218. <td><code class="docutils literal"><span class="pre">''</span></code></td>
  219. </tr>
  220. <tr class="row-odd"><td>method</td>
  221. <td>string</td>
  222. <td><code class="docutils literal"><span class="pre">'GET'</span></code></td>
  223. </tr>
  224. <tr class="row-even"><td>headers</td>
  225. <td>set</td>
  226. <td><code class="docutils literal"><span class="pre">{}</span></code></td>
  227. </tr>
  228. <tr class="row-odd"><td>data</td>
  229. <td>set</td>
  230. <td><code class="docutils literal"><span class="pre">{}</span></code></td>
  231. </tr>
  232. <tr class="row-even"><td>cookies</td>
  233. <td>set</td>
  234. <td><code class="docutils literal"><span class="pre">{}</span></code></td>
  235. </tr>
  236. <tr class="row-odd"><td>verify</td>
  237. <td>boolean</td>
  238. <td><code class="docutils literal"><span class="pre">True</span></code></td>
  239. </tr>
  240. <tr class="row-even"><td>headers.User-Agent</td>
  241. <td>string</td>
  242. <td>a random User-Agent</td>
  243. </tr>
  244. <tr class="row-odd"><td>category</td>
  245. <td>string</td>
  246. <td>current category, like <code class="docutils literal"><span class="pre">'general'</span></code></td>
  247. </tr>
  248. <tr class="row-even"><td>started</td>
  249. <td>datetime</td>
  250. <td>current date-time</td>
  251. </tr>
  252. <tr class="row-odd"><td>pageno</td>
  253. <td>int</td>
  254. <td>current pagenumber</td>
  255. </tr>
  256. <tr class="row-even"><td>language</td>
  257. <td>string</td>
  258. <td>specific language code like <code class="docutils literal"><span class="pre">'en_US'</span></code>, or <code class="docutils literal"><span class="pre">'all'</span></code> if unspecified</td>
  259. </tr>
  260. </tbody>
  261. </table>
  262. </div>
  263. <div class="section" id="parsed-arguments">
  264. <h3><a class="toc-backref" href="#id10">parsed arguments</a><a class="headerlink" href="#parsed-arguments" title="Permalink to this headline">¶</a></h3>
  265. <p>The function <code class="docutils literal"><span class="pre">def</span> <span class="pre">request(query,</span> <span class="pre">params):</span></code> always returns the
  266. <code class="docutils literal"><span class="pre">params</span></code> variable. Inside searx, the following paramters can be
  267. used to specify a search request:</p>
  268. <table border="1" class="docutils">
  269. <colgroup>
  270. <col width="15%" />
  271. <col width="14%" />
  272. <col width="71%" />
  273. </colgroup>
  274. <thead valign="bottom">
  275. <tr class="row-odd"><th class="head">argument</th>
  276. <th class="head">type</th>
  277. <th class="head">information</th>
  278. </tr>
  279. </thead>
  280. <tbody valign="top">
  281. <tr class="row-even"><td>url</td>
  282. <td>string</td>
  283. <td>requested url</td>
  284. </tr>
  285. <tr class="row-odd"><td>method</td>
  286. <td>string</td>
  287. <td>HTTP request method</td>
  288. </tr>
  289. <tr class="row-even"><td>headers</td>
  290. <td>set</td>
  291. <td>HTTP header information</td>
  292. </tr>
  293. <tr class="row-odd"><td>data</td>
  294. <td>set</td>
  295. <td>HTTP data information (parsed if <code class="docutils literal"><span class="pre">method</span> <span class="pre">!=</span> <span class="pre">'GET'</span></code>)</td>
  296. </tr>
  297. <tr class="row-even"><td>cookies</td>
  298. <td>set</td>
  299. <td>HTTP cookies</td>
  300. </tr>
  301. <tr class="row-odd"><td>verify</td>
  302. <td>boolean</td>
  303. <td>Performing SSL-Validity check</td>
  304. </tr>
  305. </tbody>
  306. </table>
  307. </div>
  308. <div class="section" id="id1">
  309. <h3><a class="toc-backref" href="#id11">example code</a><a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h3>
  310. <div class="code python highlight-default"><div class="highlight"><pre><span class="c"># search-url</span>
  311. <span class="n">base_url</span> <span class="o">=</span> <span class="s">&#39;https://example.com/&#39;</span>
  312. <span class="n">search_string</span> <span class="o">=</span> <span class="s">&#39;search?{query}&amp;page={page}&#39;</span>
  313. <span class="c"># do search-request</span>
  314. <span class="k">def</span> <span class="nf">request</span><span class="p">(</span><span class="n">query</span><span class="p">,</span> <span class="n">params</span><span class="p">):</span>
  315. <span class="n">search_path</span> <span class="o">=</span> <span class="n">search_string</span><span class="o">.</span><span class="n">format</span><span class="p">(</span>
  316. <span class="n">query</span><span class="o">=</span><span class="n">urlencode</span><span class="p">({</span><span class="s">&#39;q&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">}),</span>
  317. <span class="n">page</span><span class="o">=</span><span class="n">params</span><span class="p">[</span><span class="s">&#39;pageno&#39;</span><span class="p">])</span>
  318. <span class="n">params</span><span class="p">[</span><span class="s">&#39;url&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">base_url</span> <span class="o">+</span> <span class="n">search_path</span>
  319. <span class="k">return</span> <span class="n">params</span>
  320. </pre></div>
  321. </div>
  322. </div>
  323. </div>
  324. <div class="section" id="returned-results">
  325. <h2><a class="toc-backref" href="#id12">returned results</a><a class="headerlink" href="#returned-results" title="Permalink to this headline">¶</a></h2>
  326. <p>Searx is able to return results of different media-types.
  327. Currently the following media-types are supported:</p>
  328. <ul class="simple">
  329. <li>default</li>
  330. <li>images</li>
  331. <li>videos</li>
  332. <li>torrent</li>
  333. <li>map</li>
  334. </ul>
  335. <p>To set another media-type as default, the parameter
  336. <code class="docutils literal"><span class="pre">template</span></code> must be set to the desired type.</p>
  337. <div class="section" id="default">
  338. <h3><a class="toc-backref" href="#id13">default</a><a class="headerlink" href="#default" title="Permalink to this headline">¶</a></h3>
  339. <table border="1" class="docutils">
  340. <colgroup>
  341. <col width="15%" />
  342. <col width="85%" />
  343. </colgroup>
  344. <thead valign="bottom">
  345. <tr class="row-odd"><th class="head">result-parameter</th>
  346. <th class="head">information</th>
  347. </tr>
  348. </thead>
  349. <tbody valign="top">
  350. <tr class="row-even"><td>url</td>
  351. <td>string, url of the result</td>
  352. </tr>
  353. <tr class="row-odd"><td>title</td>
  354. <td>string, title of the result</td>
  355. </tr>
  356. <tr class="row-even"><td>content</td>
  357. <td>string, general result-text</td>
  358. </tr>
  359. <tr class="row-odd"><td>publishedDate</td>
  360. <td><a class="reference external" href="https://docs.python.org/2/library/datetime.html#datetime-objects">datetime.datetime</a>, time of publish</td>
  361. </tr>
  362. </tbody>
  363. </table>
  364. </div>
  365. <div class="section" id="images">
  366. <h3><a class="toc-backref" href="#id14">images</a><a class="headerlink" href="#images" title="Permalink to this headline">¶</a></h3>
  367. <p>to use this template, the parameter</p>
  368. <table border="1" class="docutils">
  369. <colgroup>
  370. <col width="13%" />
  371. <col width="87%" />
  372. </colgroup>
  373. <thead valign="bottom">
  374. <tr class="row-odd"><th class="head">result-parameter</th>
  375. <th class="head">information</th>
  376. </tr>
  377. </thead>
  378. <tbody valign="top">
  379. <tr class="row-even"><td>template</td>
  380. <td>is set to <code class="docutils literal"><span class="pre">images.html</span></code></td>
  381. </tr>
  382. <tr class="row-odd"><td>url</td>
  383. <td>string, url to the result site</td>
  384. </tr>
  385. <tr class="row-even"><td>title</td>
  386. <td>string, title of the result <em>(partly implemented)</em></td>
  387. </tr>
  388. <tr class="row-odd"><td>content</td>
  389. <td><em>(partly implemented)</em></td>
  390. </tr>
  391. <tr class="row-even"><td>publishedDate</td>
  392. <td><a class="reference external" href="https://docs.python.org/2/library/datetime.html#datetime-objects">datetime.datetime</a>, time of publish <em>(partly implemented)</em></td>
  393. </tr>
  394. <tr class="row-odd"><td>img_src</td>
  395. <td>string, url to the result image</td>
  396. </tr>
  397. <tr class="row-even"><td>thumbnail_src</td>
  398. <td>string, url to a small-preview image</td>
  399. </tr>
  400. </tbody>
  401. </table>
  402. </div>
  403. <div class="section" id="videos">
  404. <h3><a class="toc-backref" href="#id15">videos</a><a class="headerlink" href="#videos" title="Permalink to this headline">¶</a></h3>
  405. <table border="1" class="docutils">
  406. <colgroup>
  407. <col width="15%" />
  408. <col width="85%" />
  409. </colgroup>
  410. <thead valign="bottom">
  411. <tr class="row-odd"><th class="head">result-parameter</th>
  412. <th class="head">information</th>
  413. </tr>
  414. </thead>
  415. <tbody valign="top">
  416. <tr class="row-even"><td>template</td>
  417. <td>is set to <code class="docutils literal"><span class="pre">videos.html</span></code></td>
  418. </tr>
  419. <tr class="row-odd"><td>url</td>
  420. <td>string, url of the result</td>
  421. </tr>
  422. <tr class="row-even"><td>title</td>
  423. <td>string, title of the result</td>
  424. </tr>
  425. <tr class="row-odd"><td>content</td>
  426. <td><em>(not implemented yet)</em></td>
  427. </tr>
  428. <tr class="row-even"><td>publishedDate</td>
  429. <td><a class="reference external" href="https://docs.python.org/2/library/datetime.html#datetime-objects">datetime.datetime</a>, time of publish</td>
  430. </tr>
  431. <tr class="row-odd"><td>thumbnail</td>
  432. <td>string, url to a small-preview image</td>
  433. </tr>
  434. </tbody>
  435. </table>
  436. </div>
  437. <div class="section" id="torrent">
  438. <h3><a class="toc-backref" href="#id16">torrent</a><a class="headerlink" href="#torrent" title="Permalink to this headline">¶</a></h3>
  439. <table border="1" class="docutils">
  440. <colgroup>
  441. <col width="12%" />
  442. <col width="88%" />
  443. </colgroup>
  444. <tbody valign="top">
  445. <tr class="row-odd"><td>result-parameter</td>
  446. <td>information</td>
  447. </tr>
  448. <tr class="row-even"><td>template</td>
  449. <td>is set to <code class="docutils literal"><span class="pre">torrent.html</span></code></td>
  450. </tr>
  451. <tr class="row-odd"><td>url</td>
  452. <td>string, url of the result</td>
  453. </tr>
  454. <tr class="row-even"><td>title</td>
  455. <td>string, title of the result</td>
  456. </tr>
  457. <tr class="row-odd"><td>content</td>
  458. <td>string, general result-text</td>
  459. </tr>
  460. <tr class="row-even"><td>publishedDate</td>
  461. <td><a class="reference external" href="https://docs.python.org/2/library/datetime.html#datetime-objects">datetime.datetime</a>, time of publish <em>(not implemented yet)</em></td>
  462. </tr>
  463. <tr class="row-odd"><td>seed</td>
  464. <td>int, number of seeder</td>
  465. </tr>
  466. <tr class="row-even"><td>leech</td>
  467. <td>int, number of leecher</td>
  468. </tr>
  469. <tr class="row-odd"><td>filesize</td>
  470. <td>int, size of file in bytes</td>
  471. </tr>
  472. <tr class="row-even"><td>files</td>
  473. <td>int, number of files</td>
  474. </tr>
  475. <tr class="row-odd"><td>magnetlink</td>
  476. <td>string, <a class="reference external" href="https://en.wikipedia.org/wiki/Magnet_URI_scheme">magnetlink</a> of the result</td>
  477. </tr>
  478. <tr class="row-even"><td>torrentfile</td>
  479. <td>string, torrentfile of the result</td>
  480. </tr>
  481. </tbody>
  482. </table>
  483. </div>
  484. <div class="section" id="map">
  485. <h3><a class="toc-backref" href="#id17">map</a><a class="headerlink" href="#map" title="Permalink to this headline">¶</a></h3>
  486. <table border="1" class="docutils">
  487. <colgroup>
  488. <col width="19%" />
  489. <col width="81%" />
  490. </colgroup>
  491. <thead valign="bottom">
  492. <tr class="row-odd"><th class="head">result-parameter</th>
  493. <th class="head">information</th>
  494. </tr>
  495. </thead>
  496. <tbody valign="top">
  497. <tr class="row-even"><td>url</td>
  498. <td>string, url of the result</td>
  499. </tr>
  500. <tr class="row-odd"><td>title</td>
  501. <td>string, title of the result</td>
  502. </tr>
  503. <tr class="row-even"><td>content</td>
  504. <td>string, general result-text</td>
  505. </tr>
  506. <tr class="row-odd"><td>publishedDate</td>
  507. <td><a class="reference external" href="https://docs.python.org/2/library/datetime.html#datetime-objects">datetime.datetime</a>, time of publish</td>
  508. </tr>
  509. <tr class="row-even"><td>latitude</td>
  510. <td>latitude of result (in decimal format)</td>
  511. </tr>
  512. <tr class="row-odd"><td>longitude</td>
  513. <td>longitude of result (in decimal format)</td>
  514. </tr>
  515. <tr class="row-even"><td>boundingbox</td>
  516. <td>boundingbox of result (array of 4. values <code class="docutils literal"><span class="pre">[lat-min,</span> <span class="pre">lat-max,</span> <span class="pre">lon-min,</span> <span class="pre">lon-max]</span></code>)</td>
  517. </tr>
  518. <tr class="row-odd"><td>geojson</td>
  519. <td>geojson of result (<a class="reference external" href="http://geojson.org">http://geojson.org</a>)</td>
  520. </tr>
  521. <tr class="row-even"><td>osm.type</td>
  522. <td>type of osm-object (if OSM-Result)</td>
  523. </tr>
  524. <tr class="row-odd"><td>osm.id</td>
  525. <td>id of osm-object (if OSM-Result)</td>
  526. </tr>
  527. <tr class="row-even"><td>address.name</td>
  528. <td>name of object</td>
  529. </tr>
  530. <tr class="row-odd"><td>address.road</td>
  531. <td>street name of object</td>
  532. </tr>
  533. <tr class="row-even"><td>address.house_number</td>
  534. <td>house number of object</td>
  535. </tr>
  536. <tr class="row-odd"><td>address.locality</td>
  537. <td>city, place of object</td>
  538. </tr>
  539. <tr class="row-even"><td>address.postcode</td>
  540. <td>postcode of object</td>
  541. </tr>
  542. <tr class="row-odd"><td>address.country</td>
  543. <td>country of object</td>
  544. </tr>
  545. </tbody>
  546. </table>
  547. </div>
  548. </div>
  549. </div>
  550. </div>
  551. </div>
  552. </div>
  553. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  554. <div class="sphinxsidebarwrapper"><div class="sidebar_container body">
  555. <h1>Searx</h1>
  556. <ul>
  557. <li><a href="../index.html">Home</a></li>
  558. <li><a href="https://github.com/asciimoo/searx">Source</a></li>
  559. <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li>
  560. <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li>
  561. </ul>
  562. <hr />
  563. <ul>
  564. <li><a href="https://twitter.com/Searx_engine">Twitter</a></li>
  565. <li><a href="https://flattr.com/submit/auto?user_id=asciimoo&url=https://github.com/asciimoo/searx&title=searx&language=&tags=github&category=software">Flattr</a></li>
  566. <li><a href="https://gratipay.com/searx">Gratipay</a></li>
  567. </ul>
  568. </div>
  569. </div>
  570. </div>
  571. <div class="clearer"></div>
  572. </div>
  573. <div class="footer">
  574. &copy; Copyright 2015-2016, Adam Tauber.
  575. </div>
  576. </body>
  577. </html>