| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 | ===============================Query your local search engines===============================From now on, searx lets you to query your locally running search engines. The followingones are supported now:* `Elasticsearch`_* `Meilisearch`_* `Solr`_All of the engines above are added to ``settings.yml`` just commented out, as you have to``base_url`` for all them.Please note that if you are not using HTTPS to access these engines, you have to enableHTTP requests by setting ``enable_http`` to ``True``.Futhermore, if you do not want to expose these engines on a public instance, you canstill add them and limit the access by setting ``tokens`` as described in the `blog post aboutprivate engines`_.Configuring searx for search engines====================================Each search engine is powerful, capable of full-text search.Elasticsearch-------------Elasticsearch supports numerous ways to query the data it is storing. At the momentthe engine supports the most popular search methods: ``match``, ``simple_query_string``, ``term`` and ``terms``.If none of the methods fit your use case, you can select ``custom`` query type and provide the JSON payloadsearx has to submit to Elasticsearch in ``custom_query_json``.The following is an example configuration for an Elasticsearch instance with authenticationconfigured to read from ``my-index`` index... code:: yaml  - name : elasticsearch    shortcut : es    engine : elasticsearch    base_url : http://localhost:9200    username : elastic    password : changeme    index : my-index    query_type : match    enable_http : TrueMeilisearch-----------This search engine is aimed at individuals and small companies. It is designed forsmall-scale (less than 10 million documents) data collections. E.g. it is great for storingweb pages you have visited and searching in the contents later.The engine supports faceted search, so you can search in a subset of documents of the collection.Futhermore, you can search in Meilisearch instances that require authentication by setting ``auth_token``.Here is a simple example to query a Meilisearch instance:.. code:: yaml  - name : meilisearch    engine : meilisearch    shortcut: mes    base_url : http://localhost:7700    index : my-index    enable_http: TrueSolr----Solr is a popular search engine based on Lucene, just like Elasticsearch.But instead of searching in indices, you can search in collections.This is an example configuration for searching in the collection ``my-collection`` and getthe results in ascending order... code:: yaml  - name : solr    engine : solr    shortcut : slr    base_url : http://localhost:8983    collection : my-collection    sort : asc    enable_http : TrueNext steps==========The next step is to add support for various SQL databases.Acknowledgement===============This development was sponsored by `Search and Discovery Fund`_ of `NLnet Foundation`_ ... _blog post about private engines: private-engines.html#private-engines.. _Elasticsearch: https://www.elastic.co/elasticsearch/.. _Meilisearch: https://www.meilisearch.com/.. _Solr: https://solr.apache.org/.. _Search and Discovery Fund: https://nlnet.nl/discovery.. _NLnet Foundation: https://nlnet.nl/| Happy hacking.| kvch // 2021.04.07 23:16
 |