1<?php 2 3/** 4 * Constants for Elasticsearch support in phpMyFAQ 5 * 6 * 7 * 8 * This Source Code Form is subject to the terms of the Mozilla Public License, 9 * v. 2.0. If a copy of the MPL was not distributed with this file, You can 10 * obtain one at http://mozilla.org/MPL/2.0/. 11 * 12 * @package phpMyFAQ 13 * @author Thorsten Rinne <thorsten@phpmyfaq.de> 14 * @copyright 2015-2020 phpMyFAQ Team 15 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 16 * @link https://www.phpmyfaq.de 17 * @since 2015-12-27 18 */ 19 20/** 21 * Number of shards 22 */ 23define('PMF_ELASTICSEARCH_NUMBER_SHARDS', 2); 24 25/** 26 * Number of replicas 27 */ 28define('PMF_ELASTICSEARCH_NUMBER_REPLICAS', 0); 29 30/** 31 * Array of stemmer token filters with the preferred values by Elasticsearch 32 * 33 * @var array 34 */ 35$PMF_ELASTICSEARCH_STEMMING_LANGUAGE = [ 36 'ar' => 'arabic', 37 'bn' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 38 'bs' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 39 'bg' => 'bulgarian', 40 'ca' => 'catalan', 41 'cs' => 'czech', 42 'cy' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 43 'da' => 'danish', 44 'de' => 'light_german', 45 'el' => 'greek', 46 'en' => 'english', 47 'es' => 'light_spanish', 48 'eu' => 'basque', 49 'fa' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 50 'fi' => 'finnish', 51 'fr' => 'light_french', 52 'fr-ca' => 'light_french', 53 'ga' => 'irish', 54 'he' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 55 'hi' => 'hindi', 56 'hu' => 'hungarian', 57 'id' => 'indonesian', 58 'it' => 'light_italian', 59 'ja' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 60 'ko' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 61 'lt' => 'lithuanian', 62 'lv' => 'latvian', 63 'ms' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 64 'nb' => 'norwegian', 65 'nl' => 'dutch', 66 'pl' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 67 'pt' => 'light_portuguese', 68 'pt-br' => 'brazilian', 69 'ro' => 'romanian', 70 'ru' => 'russian', 71 'sk' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 72 'sl' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 73 'sr' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 74 'sv' => 'swedish', 75 'th' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 76 'tr' => 'turkish', 77 'tw' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 78 'uk' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 79 'vi' => 'english', // NOT SUPPORTED BY ELASTICSEARCH 80 'zh' => 'english' // NOT SUPPORTED BY ELASTICSEARCH 81]; 82