indexer-engines.rst 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ==================
  2. Search in indexers
  3. ==================
  4. Searx supports three popular indexer search engines:
  5. * Elasticsearch
  6. * Meilisearch
  7. * Solr
  8. Elasticsearch
  9. =============
  10. Make sure that the Elasticsearch user has access to the index you are querying.
  11. If you are not using TLS during your connection, set ``enable_http`` to ``True``.
  12. .. code:: yaml
  13. - name : elasticsearch
  14. shortcut : es
  15. engine : elasticsearch
  16. base_url : http://localhost:9200
  17. username : elastic
  18. password : changeme
  19. index : my-index
  20. query_type : match
  21. enable_http : True
  22. Available settings
  23. ------------------
  24. * ``base_url``: URL of Elasticsearch instance. By default it is set to ``http://localhost:9200``.
  25. * ``index``: Name of the index to query. Required.
  26. * ``query_type``: Elasticsearch query method to use. Available: ``match``,
  27. ``simple_query_string``, ``term``, ``terms``, ``custom``.
  28. * ``custom_query_json``: If you selected ``custom`` for ``query_type``, you must
  29. provide the JSON payload in this option.
  30. * ``username``: Username in Elasticsearch
  31. * ``password``: Password for the Elasticsearch user
  32. Meilisearch
  33. ===========
  34. If you are not using TLS during connection, set ``enable_http`` to ``True``.
  35. .. code:: yaml
  36. - name : meilisearch
  37. engine : meilisearch
  38. shortcut: mes
  39. base_url : http://localhost:7700
  40. index : my-index
  41. enable_http: True
  42. Available settings
  43. ------------------
  44. * ``base_url``: URL of the Meilisearch instance. By default it is set to http://localhost:7700
  45. * ``index``: Name of the index to query. Required.
  46. * ``auth_key``: Key required for authentication.
  47. * ``facet_filters``: List of facets to search in.
  48. Solr
  49. ====
  50. If you are not using TLS during connection, set ``enable_http`` to ``True``.
  51. .. code:: yaml
  52. - name : solr
  53. engine : solr
  54. shortcut : slr
  55. base_url : http://localhost:8983
  56. collection : my-collection
  57. sort : asc
  58. enable_http : True
  59. Available settings
  60. ------------------
  61. * ``base_url``: URL of the Meilisearch instance. By default it is set to http://localhost:8983
  62. * ``collection``: Name of the collection to query. Required.
  63. * ``sort``: Sorting of the results. Available: ``asc``, ``desc``.
  64. * ``rows``: Maximum number of results from a query. Default value: 10.
  65. * ``field_list``: List of fields returned from the query.
  66. * ``default_fields``: Default fields to query.
  67. * ``query_fields``: List of fields with a boost factor. The bigger the boost
  68. factor of a field, the more important the field is in the query. Example:
  69. ``qf="field1^2.3 field2"``