$smwgEnabledFulltextSearch
Configuration parameter details: | |||
Name | $smwgEnabledFulltextSearch | ||
Description | Sets whether full-text search support for properties may be used | ||
Default setting | false |
||
(Other) available settings |
|
||
Software | Semantic MediaWiki | ||
Since version | |||
Until version | still available | ||
Configuration | Full-text search · Experimental | ||
Keyword | full-text search · data store · relational database · sql store · sql database · experimental |
$smwgEnabledFulltextSearch
is a configuration parameter that sets whether full-text search support may be used. It is specific to a relational data store and currently supports MySQL/MariaDB1 and SQLite2 while PostgreSQL34 is currently not supported. It was introduced in Semantic MediaWiki 2.5.0Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x..1
Default setting[edit]
$smwgEnabledFulltextSearch = false;
This means that full-text search support is not available.
Changing the default setting[edit]
To modify this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics()
call:
- Enable the full-text search feature
$smwgEnabledFulltextSearch = true;
This means that full-text search support is available. The wiki will now store text elements using a separate table in order for the relational back-end to use special full-text index operations.
See also[edit]
- General information
- Help page on full-text search
- Help page on how to use full-text search
- Related configuration parameters
- Help page on configuration parameter
$smwgFulltextDeferredUpdate
Sets the number of expected full-text search index updates − Allows to throttle the number of expected index updates - Help page on configuration parameter
$smwgFulltextSearchTableOptions
Sets the full-text search table options to use during installation or update − Allows to set database related options - Help page on configuration parameter
$smwgFulltextSearchMinTokenSize
Sets the minimum word/token length to help to decide whether MATCH or LIKE operators are to be used for a condition statement − Allows to describe the minimum word/token - Help page on configuration parameter
$smwgFulltextLanguageDetection
Sets which languages to detect for the full-text search from an indexable text − Allows to detect a language (experimental setting) - Help page on configuration parameter
$smwgFulltextSearchIndexableDataTypes
Sets which datatypes are allowed to be indexed using the full-text search − Allows to list datatypes that should be indexed - Help page on configuration parameter
$smwgFulltextSearchPropertyExemptionList
Sets the property keys for which value assignments are being exempted from the full-text indexing − Allows to list properties that should be not be indexed - Help page on option
SMW_FIELDT_CHAR_LONG
to configuration parameter$smwgDVFeatures
− Allows to extend the searchable field length to 300 characters without the need to enable the full-text search feature
References
- a b | Semantic MediaWiki: GitHub pull request gh:smw:1481
- ^ | Semantic MediaWiki: GitHub pull request gh:smw:1801
- ^ | Semantic MediaWiki: GitHub pull request gh:smw:1956
- ^ | PostgreSQL, farklı bir dizin şeması nedeniyle desteklenmiyor (ör.
to_tsvector
,to_tsquery
) ancak bunu kullanıma sunmak isteyen kullanıcıların, PostgreSQL'e özgü bir uygulamanın nasıl oluşturulacağıyla ilgili "MySQLValueMatchConditionBuilder" ile bir göz atmaları önerilir.