engine_overview.html 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  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.8.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.8.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.8.0 documentation" href="../index.html" />
  22. <link rel="next" title="Search API" href="search_api.html" />
  23. <link rel="prev" title="Installation" href="install/installation.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="29%" />
  82. <col width="15%" />
  83. <col width="56%" />
  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. </tbody>
  105. </table>
  106. </div>
  107. <div class="section" id="settings-yml">
  108. <h3><a class="toc-backref" href="#id5">settings.yml</a><a class="headerlink" href="#settings-yml" title="Permalink to this headline">¶</a></h3>
  109. <table border="1" class="docutils">
  110. <colgroup>
  111. <col width="17%" />
  112. <col width="14%" />
  113. <col width="68%" />
  114. </colgroup>
  115. <thead valign="bottom">
  116. <tr class="row-odd"><th class="head">argument</th>
  117. <th class="head">type</th>
  118. <th class="head">information</th>
  119. </tr>
  120. </thead>
  121. <tbody valign="top">
  122. <tr class="row-even"><td>name</td>
  123. <td>string</td>
  124. <td>name of search-engine</td>
  125. </tr>
  126. <tr class="row-odd"><td>engine</td>
  127. <td>string</td>
  128. <td>name of searx-engine (filename without .py)</td>
  129. </tr>
  130. <tr class="row-even"><td>shortcut</td>
  131. <td>string</td>
  132. <td>shortcut of search-engine</td>
  133. </tr>
  134. <tr class="row-odd"><td>timeout</td>
  135. <td>string</td>
  136. <td>specific timeout for search-engine</td>
  137. </tr>
  138. </tbody>
  139. </table>
  140. </div>
  141. <div class="section" id="overrides">
  142. <h3><a class="toc-backref" href="#id6">overrides</a><a class="headerlink" href="#overrides" title="Permalink to this headline">¶</a></h3>
  143. <p>A few of the options have default values in the engine, but are
  144. often overwritten by the settings. If <code class="docutils literal"><span class="pre">None</span></code> is assigned to an option
  145. in the engine file, it has to be redefined in the settings,
  146. otherwise searx will not start with that engine.</p>
  147. <p>The naming of overrides is arbitrary. But the recommended
  148. overrides are the following:</p>
  149. <table border="1" class="docutils">
  150. <colgroup>
  151. <col width="24%" />
  152. <col width="10%" />
  153. <col width="66%" />
  154. </colgroup>
  155. <thead valign="bottom">
  156. <tr class="row-odd"><th class="head">argument</th>
  157. <th class="head">type</th>
  158. <th class="head">information</th>
  159. </tr>
  160. </thead>
  161. <tbody valign="top">
  162. <tr class="row-even"><td>base_url</td>
  163. <td>string</td>
  164. <td>base-url, can be overwritten to use same engine on other URL</td>
  165. </tr>
  166. <tr class="row-odd"><td>number_of_results</td>
  167. <td>int</td>
  168. <td>maximum number of results per request</td>
  169. </tr>
  170. <tr class="row-even"><td>language</td>
  171. <td>string</td>
  172. <td>ISO code of language and country like en_US</td>
  173. </tr>
  174. <tr class="row-odd"><td>api_key</td>
  175. <td>string</td>
  176. <td>api-key if required by engine</td>
  177. </tr>
  178. </tbody>
  179. </table>
  180. </div>
  181. <div class="section" id="example-code">
  182. <h3><a class="toc-backref" href="#id7">example code</a><a class="headerlink" href="#example-code" title="Permalink to this headline">¶</a></h3>
  183. <div class="code python highlight-python"><div class="highlight"><pre><span class="c1"># engine dependent config</span>
  184. <span class="n">categories</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;general&#39;</span><span class="p">]</span>
  185. <span class="n">paging</span> <span class="o">=</span> <span class="bp">True</span>
  186. <span class="n">language_support</span> <span class="o">=</span> <span class="bp">True</span>
  187. </pre></div>
  188. </div>
  189. </div>
  190. </div>
  191. <div class="section" id="making-a-request">
  192. <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>
  193. <p>To perform a search an URL have to be specified. In addition to
  194. specifying an URL, arguments can be passed to the query.</p>
  195. <div class="section" id="passed-arguments">
  196. <h3><a class="toc-backref" href="#id9">passed arguments</a><a class="headerlink" href="#passed-arguments" title="Permalink to this headline">¶</a></h3>
  197. <p>These arguments can be used to construct the search query. Furthermore,
  198. parameters with default value can be redefined for special purposes.</p>
  199. <table border="1" class="docutils">
  200. <colgroup>
  201. <col width="21%" />
  202. <col width="11%" />
  203. <col width="68%" />
  204. </colgroup>
  205. <thead valign="bottom">
  206. <tr class="row-odd"><th class="head">argument</th>
  207. <th class="head">type</th>
  208. <th class="head">default-value, information</th>
  209. </tr>
  210. </thead>
  211. <tbody valign="top">
  212. <tr class="row-even"><td>url</td>
  213. <td>string</td>
  214. <td><code class="docutils literal"><span class="pre">''</span></code></td>
  215. </tr>
  216. <tr class="row-odd"><td>method</td>
  217. <td>string</td>
  218. <td><code class="docutils literal"><span class="pre">'GET'</span></code></td>
  219. </tr>
  220. <tr class="row-even"><td>headers</td>
  221. <td>set</td>
  222. <td><code class="docutils literal"><span class="pre">{}</span></code></td>
  223. </tr>
  224. <tr class="row-odd"><td>data</td>
  225. <td>set</td>
  226. <td><code class="docutils literal"><span class="pre">{}</span></code></td>
  227. </tr>
  228. <tr class="row-even"><td>cookies</td>
  229. <td>set</td>
  230. <td><code class="docutils literal"><span class="pre">{}</span></code></td>
  231. </tr>
  232. <tr class="row-odd"><td>verify</td>
  233. <td>boolean</td>
  234. <td><code class="docutils literal"><span class="pre">True</span></code></td>
  235. </tr>
  236. <tr class="row-even"><td>headers.User-Agent</td>
  237. <td>string</td>
  238. <td>a random User-Agent</td>
  239. </tr>
  240. <tr class="row-odd"><td>category</td>
  241. <td>string</td>
  242. <td>current category, like <code class="docutils literal"><span class="pre">'general'</span></code></td>
  243. </tr>
  244. <tr class="row-even"><td>started</td>
  245. <td>datetime</td>
  246. <td>current date-time</td>
  247. </tr>
  248. <tr class="row-odd"><td>pageno</td>
  249. <td>int</td>
  250. <td>current pagenumber</td>
  251. </tr>
  252. <tr class="row-even"><td>language</td>
  253. <td>string</td>
  254. <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>
  255. </tr>
  256. </tbody>
  257. </table>
  258. </div>
  259. <div class="section" id="parsed-arguments">
  260. <h3><a class="toc-backref" href="#id10">parsed arguments</a><a class="headerlink" href="#parsed-arguments" title="Permalink to this headline">¶</a></h3>
  261. <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
  262. <code class="docutils literal"><span class="pre">params</span></code> variable. Inside searx, the following paramters can be
  263. used to specify a search request:</p>
  264. <table border="1" class="docutils">
  265. <colgroup>
  266. <col width="15%" />
  267. <col width="14%" />
  268. <col width="71%" />
  269. </colgroup>
  270. <thead valign="bottom">
  271. <tr class="row-odd"><th class="head">argument</th>
  272. <th class="head">type</th>
  273. <th class="head">information</th>
  274. </tr>
  275. </thead>
  276. <tbody valign="top">
  277. <tr class="row-even"><td>url</td>
  278. <td>string</td>
  279. <td>requested url</td>
  280. </tr>
  281. <tr class="row-odd"><td>method</td>
  282. <td>string</td>
  283. <td>HTTP request method</td>
  284. </tr>
  285. <tr class="row-even"><td>headers</td>
  286. <td>set</td>
  287. <td>HTTP header information</td>
  288. </tr>
  289. <tr class="row-odd"><td>data</td>
  290. <td>set</td>
  291. <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>
  292. </tr>
  293. <tr class="row-even"><td>cookies</td>
  294. <td>set</td>
  295. <td>HTTP cookies</td>
  296. </tr>
  297. <tr class="row-odd"><td>verify</td>
  298. <td>boolean</td>
  299. <td>Performing SSL-Validity check</td>
  300. </tr>
  301. </tbody>
  302. </table>
  303. </div>
  304. <div class="section" id="id1">
  305. <h3><a class="toc-backref" href="#id11">example code</a><a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h3>
  306. <div class="code python highlight-python"><div class="highlight"><pre><span class="c1"># search-url</span>
  307. <span class="n">base_url</span> <span class="o">=</span> <span class="s1">&#39;https://example.com/&#39;</span>
  308. <span class="n">search_string</span> <span class="o">=</span> <span class="s1">&#39;search?{query}&amp;page={page}&#39;</span>
  309. <span class="c1"># do search-request</span>
  310. <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>
  311. <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>
  312. <span class="n">query</span><span class="o">=</span><span class="n">urlencode</span><span class="p">({</span><span class="s1">&#39;q&#39;</span><span class="p">:</span> <span class="n">query</span><span class="p">}),</span>
  313. <span class="n">page</span><span class="o">=</span><span class="n">params</span><span class="p">[</span><span class="s1">&#39;pageno&#39;</span><span class="p">])</span>
  314. <span class="n">params</span><span class="p">[</span><span class="s1">&#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>
  315. <span class="k">return</span> <span class="n">params</span>
  316. </pre></div>
  317. </div>
  318. </div>
  319. </div>
  320. <div class="section" id="returned-results">
  321. <h2><a class="toc-backref" href="#id12">returned results</a><a class="headerlink" href="#returned-results" title="Permalink to this headline">¶</a></h2>
  322. <p>Searx is able to return results of different media-types.
  323. Currently the following media-types are supported:</p>
  324. <ul class="simple">
  325. <li>default</li>
  326. <li>images</li>
  327. <li>videos</li>
  328. <li>torrent</li>
  329. <li>map</li>
  330. </ul>
  331. <p>To set another media-type as default, the parameter
  332. <code class="docutils literal"><span class="pre">template</span></code> must be set to the desired type.</p>
  333. <div class="section" id="default">
  334. <h3><a class="toc-backref" href="#id13">default</a><a class="headerlink" href="#default" title="Permalink to this headline">¶</a></h3>
  335. <table border="1" class="docutils">
  336. <colgroup>
  337. <col width="13%" />
  338. <col width="87%" />
  339. </colgroup>
  340. <thead valign="bottom">
  341. <tr class="row-odd"><th class="head">result-parameter</th>
  342. <th class="head">information</th>
  343. </tr>
  344. </thead>
  345. <tbody valign="top">
  346. <tr class="row-even"><td>url</td>
  347. <td>string, which is representing the url of the result</td>
  348. </tr>
  349. <tr class="row-odd"><td>title</td>
  350. <td>string, which is representing the title of the result</td>
  351. </tr>
  352. <tr class="row-even"><td>content</td>
  353. <td>string, which is giving a general result-text</td>
  354. </tr>
  355. <tr class="row-odd"><td>publishedDate</td>
  356. <td><a class="reference external" href="https://docs.python.org/2/library/datetime.html#datetime-objects">datetime.datetime</a>, represent when the result is published</td>
  357. </tr>
  358. </tbody>
  359. </table>
  360. </div>
  361. <div class="section" id="images">
  362. <h3><a class="toc-backref" href="#id14">images</a><a class="headerlink" href="#images" title="Permalink to this headline">¶</a></h3>
  363. <p>to use this template, the parameter</p>
  364. <table border="1" class="docutils">
  365. <colgroup>
  366. <col width="11%" />
  367. <col width="89%" />
  368. </colgroup>
  369. <thead valign="bottom">
  370. <tr class="row-odd"><th class="head">result-parameter</th>
  371. <th class="head">information</th>
  372. </tr>
  373. </thead>
  374. <tbody valign="top">
  375. <tr class="row-even"><td>template</td>
  376. <td>is set to <code class="docutils literal"><span class="pre">images.html</span></code></td>
  377. </tr>
  378. <tr class="row-odd"><td>url</td>
  379. <td>string, which is representing the url to the result site</td>
  380. </tr>
  381. <tr class="row-even"><td>title</td>
  382. <td>string, which is representing the title of the result <em>(partly implemented)</em></td>
  383. </tr>
  384. <tr class="row-odd"><td>content</td>
  385. <td><em>(partly implemented)</em></td>
  386. </tr>
  387. <tr class="row-even"><td>publishedDate</td>
  388. <td><a class="reference external" href="https://docs.python.org/2/library/datetime.html#datetime-objects">datetime.datetime</a>, represent when the result is published <em>(partly implemented)</em></td>
  389. </tr>
  390. <tr class="row-odd"><td>img_src</td>
  391. <td>string, which is representing the url to the result image</td>
  392. </tr>
  393. <tr class="row-even"><td>thumbnail_src</td>
  394. <td>string, which is representing the url to a small-preview image</td>
  395. </tr>
  396. </tbody>
  397. </table>
  398. </div>
  399. <div class="section" id="videos">
  400. <h3><a class="toc-backref" href="#id15">videos</a><a class="headerlink" href="#videos" title="Permalink to this headline">¶</a></h3>
  401. <table border="1" class="docutils">
  402. <colgroup>
  403. <col width="13%" />
  404. <col width="87%" />
  405. </colgroup>
  406. <thead valign="bottom">
  407. <tr class="row-odd"><th class="head">result-parameter</th>
  408. <th class="head">information</th>
  409. </tr>
  410. </thead>
  411. <tbody valign="top">
  412. <tr class="row-even"><td>template</td>
  413. <td>is set to <code class="docutils literal"><span class="pre">videos.html</span></code></td>
  414. </tr>
  415. <tr class="row-odd"><td>url</td>
  416. <td>string, which is representing the url of the result</td>
  417. </tr>
  418. <tr class="row-even"><td>title</td>
  419. <td>string, which is representing the title of the result</td>
  420. </tr>
  421. <tr class="row-odd"><td>content</td>
  422. <td><em>(not implemented yet)</em></td>
  423. </tr>
  424. <tr class="row-even"><td>publishedDate</td>
  425. <td><a class="reference external" href="https://docs.python.org/2/library/datetime.html#datetime-objects">datetime.datetime</a>, represent when the result is published</td>
  426. </tr>
  427. <tr class="row-odd"><td>thumbnail</td>
  428. <td>string, which is representing the url to a small-preview image</td>
  429. </tr>
  430. </tbody>
  431. </table>
  432. </div>
  433. <div class="section" id="torrent">
  434. <h3><a class="toc-backref" href="#id16">torrent</a><a class="headerlink" href="#torrent" title="Permalink to this headline">¶</a></h3>
  435. <table border="1" class="docutils">
  436. <colgroup>
  437. <col width="10%" />
  438. <col width="90%" />
  439. </colgroup>
  440. <tbody valign="top">
  441. <tr class="row-odd"><td>result-parameter</td>
  442. <td>information</td>
  443. </tr>
  444. <tr class="row-even"><td>template</td>
  445. <td>is set to <code class="docutils literal"><span class="pre">`torrent.html`</span></code></td>
  446. </tr>
  447. <tr class="row-odd"><td>url</td>
  448. <td>string, which is representing the url of the result</td>
  449. </tr>
  450. <tr class="row-even"><td>title</td>
  451. <td>string, which is representing the title of the result</td>
  452. </tr>
  453. <tr class="row-odd"><td>content</td>
  454. <td>string, which is giving a general result-text</td>
  455. </tr>
  456. <tr class="row-even"><td>publishedDate</td>
  457. <td><a class="reference external" href="https://docs.python.org/2/library/datetime.html#datetime-objects">datetime.datetime</a>, represent when the result is published <em>(not implemented yet)</em></td>
  458. </tr>
  459. <tr class="row-odd"><td>seed</td>
  460. <td>int, number of seeder</td>
  461. </tr>
  462. <tr class="row-even"><td>leech</td>
  463. <td>int, number of leecher</td>
  464. </tr>
  465. <tr class="row-odd"><td>filesize</td>
  466. <td>int, size of file in bytes</td>
  467. </tr>
  468. <tr class="row-even"><td>files</td>
  469. <td>int, number of files</td>
  470. </tr>
  471. <tr class="row-odd"><td>magnetlink</td>
  472. <td>string, which is the <a class="reference external" href="https://en.wikipedia.org/wiki/Magnet_URI_scheme">magnetlink</a> of the result</td>
  473. </tr>
  474. <tr class="row-even"><td>torrentfile</td>
  475. <td>string, which is the torrentfile of the result</td>
  476. </tr>
  477. </tbody>
  478. </table>
  479. </div>
  480. <div class="section" id="map">
  481. <h3><a class="toc-backref" href="#id17">map</a><a class="headerlink" href="#map" title="Permalink to this headline">¶</a></h3>
  482. <table border="1" class="docutils">
  483. <colgroup>
  484. <col width="16%" />
  485. <col width="84%" />
  486. </colgroup>
  487. <thead valign="bottom">
  488. <tr class="row-odd"><th class="head">result-parameter</th>
  489. <th class="head">information</th>
  490. </tr>
  491. </thead>
  492. <tbody valign="top">
  493. <tr class="row-even"><td>url</td>
  494. <td>string, which is representing the url of the result</td>
  495. </tr>
  496. <tr class="row-odd"><td>title</td>
  497. <td>string, which is representing the title of the result</td>
  498. </tr>
  499. <tr class="row-even"><td>content</td>
  500. <td>string, which is giving a general result-text</td>
  501. </tr>
  502. <tr class="row-odd"><td>publishedDate</td>
  503. <td><a class="reference external" href="https://docs.python.org/2/library/datetime.html#datetime-objects">datetime.datetime</a>, represent when the result is published</td>
  504. </tr>
  505. <tr class="row-even"><td>latitude</td>
  506. <td>latitude of result (in decimal format)</td>
  507. </tr>
  508. <tr class="row-odd"><td>longitude</td>
  509. <td>longitude of result (in decimal format)</td>
  510. </tr>
  511. <tr class="row-even"><td>boundingbox</td>
  512. <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>
  513. </tr>
  514. <tr class="row-odd"><td>geojson</td>
  515. <td>geojson of result (<a class="reference external" href="http://geojson.org">http://geojson.org</a>)</td>
  516. </tr>
  517. <tr class="row-even"><td>osm.type</td>
  518. <td>type of osm-object (if OSM-Result)</td>
  519. </tr>
  520. <tr class="row-odd"><td>osm.id</td>
  521. <td>id of osm-object (if OSM-Result)</td>
  522. </tr>
  523. <tr class="row-even"><td>address.name</td>
  524. <td>name of object</td>
  525. </tr>
  526. <tr class="row-odd"><td>address.road</td>
  527. <td>street adress of object</td>
  528. </tr>
  529. <tr class="row-even"><td>address.house_number</td>
  530. <td>house number of object</td>
  531. </tr>
  532. <tr class="row-odd"><td>address.locality</td>
  533. <td>city, place of object</td>
  534. </tr>
  535. <tr class="row-even"><td>address.postcode</td>
  536. <td>postcode of object</td>
  537. </tr>
  538. <tr class="row-odd"><td>address.country</td>
  539. <td>country of object</td>
  540. </tr>
  541. </tbody>
  542. </table>
  543. </div>
  544. </div>
  545. </div>
  546. </div>
  547. </div>
  548. </div>
  549. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  550. <div class="sphinxsidebarwrapper"><div class="sidebar_container body">
  551. <h1>Searx</h1>
  552. <ul>
  553. <li><a href="../index.html">Home</a></li>
  554. <li><a href="https://github.com/asciimoo/searx">Source</a></li>
  555. <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li>
  556. <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li>
  557. </ul>
  558. <hr />
  559. <ul>
  560. <li><a href="https://twitter.com/Searx_engine">Twitter</a></li>
  561. <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>
  562. <li><a href="https://gratipay.com/searx">Gratipay</a></li>
  563. </ul>
  564. </div>
  565. </div>
  566. </div>
  567. <div class="clearer"></div>
  568. </div>
  569. <div class="footer">
  570. &copy; Copyright 2015, Adam Tauber.
  571. </div>
  572. </body>
  573. </html>