$smwgFulltextSearchIndexableDataTypes

From Linux Web Expert

Revision as of 13:46, 5 January 2019 by >Kghbln (better wording)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Template:Interlanguagelink: en
Configuration parameter details:
Name $smwgFulltextSearchIndexableDataTypes
Description Sets which datatypes are allowed to be indexed using the full-text search
Default setting See below
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


__NOBREADCRUMBLINKS__

$smwgFulltextLanguageDetection is a configuration parameter that sets which datatypes are allowed to be indexed using the full-text search. It was introduced in Semantic MediaWiki 2.5.0.1

This setting only takes effect if the full-text search feature was enabled.

Default setting

$smwgFulltextSearchIndexableDataTypes = SMW_FT_BLOB | SMW_FT_URI;

This means that by default properties which use storage engine data types strings of characters or text to store their database tables (Blob, URI), e.g. "Text" or "URL", etc. but not "Page". These datatypes use either CHAR, VARCHAR, or TEXT to store their data in the database tables.

  • Option SMW_FT_WIKIPAGE is not added as default value as no performance impact analysis is available as to how indexing and search performance would be affected by a wiki with a large pool of pages (10,000+) or extended page type value assignments on a full-text index.
  • Datatypes provided by the "Semantic Extra Special Properties", "Semantic Cite" and "Semantic Interlanguage Links" extensions which also use the storage engine data types Blob (Text) or URI are also indexed.2

Available options

  • SMW_FT_BLOB: Allows property values to database data type Blob (Text) to be indexed
  • SMW_FT_URI: Allows property values to database data type URI to be indexed
  • SMW_FT_WIKIPAGE: Allows property values to database data type Blob (Text) as semantic datatype "Page" to be indexed

Changing the default setting

The "rebuildFulltextSearchTable.php" maintenance script has to be run after changing the setting of this configuration parameter.

To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Also enable properties of datatype "Page" to be indexed
$smwgFulltextSearchIndexableDataTypes = $smwgFulltextSearchIndexableDataTypes | SMW_FT_WIKIPAGE;
Enabling SMW_FT_WIKIPAGE will support the same search features (case insensitivity, phrase matching etc.) as available for Text or URI values when searches are executed using the ~/!~.

See also

#scite could not render a citation text for reference "gh:smw:2122:267830544" because type "issuecomment" was not assigned to a template.

References

  1. ^ gh:smw:2122 
  2. ^ gh:smw:2122:267830544