CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Builds elasticsearch mapping configuration arrays. More...
Public Member Functions | |
__construct ( $optimizeForExperimentalHighlighter, $flags=0, ?SearchConfig $config=null, ?CirrusSearchHookRunner $cirrusSearchHookRunner=null) | |
buildConfig () | |
Build the mapping config. | |
canOptimizeAnalysisConfig () | |
Whether or not it's safe to optimize the analysis config. | |
Public Attributes | |
const | PREFIX_START_WITH_ANY = 1 |
const | PHRASE_SUGGEST_USE_TEXT = 2 |
const | OPTIMIZE_FOR_EXPERIMENTAL_HIGHLIGHTER = 4 |
const | VERSION = '1.10' |
Version number for the core analysis. | |
Protected Member Functions | |
buildSourceTextStringField ( $fieldName) | |
Build the source_text index field. | |
Protected Attributes | |
$engine | |
$searchIndexFieldFactory | |
$flags = 0 | |
Builds elasticsearch mapping configuration arrays.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
CirrusSearch\Maintenance\MappingConfigBuilder::__construct | ( | $optimizeForExperimentalHighlighter, | |
$flags = 0, | |||
?SearchConfig | $config = null, | ||
?CirrusSearchHookRunner | $cirrusSearchHookRunner = null ) |
bool | $optimizeForExperimentalHighlighter | should the index be optimized for the experimental highlighter? |
int | $flags | |
SearchConfig | null | $config | |
CirrusSearchHookRunner | null | $cirrusSearchHookRunner |
CirrusSearch\Maintenance\MappingConfigBuilder::buildConfig | ( | ) |
Build the mapping config.
Reimplemented in CirrusSearch\Maintenance\ArchiveMappingConfigBuilder.
|
protected |
Build the source_text index field.
string | $fieldName | usually "source_text" |
CirrusSearch\Maintenance\MappingConfigBuilder::canOptimizeAnalysisConfig | ( | ) |
Whether or not it's safe to optimize the analysis config.
It's generally safe to optimize if all the analyzers needed are properly referenced in the mapping. In the case an analyzer is used directly in a query but not referenced in the mapping it's not safe to optimize.
Reimplemented in CirrusSearch\Maintenance\ArchiveMappingConfigBuilder.
const CirrusSearch\Maintenance\MappingConfigBuilder::VERSION = '1.10' |
Version number for the core analysis.
Increment the major version when the analysis changes in an incompatible way, and change the minor version when it changes but isn't incompatible