Help:Configuration parameter "$smwgFulltextSearchPropertyExemptionList"

From semantic-mediawiki.org
Jump to: navigation, search
edit with form (experimental)


Title $smwgFulltextSearchPropertyExemptionList
Description Sets the property keys for which value assignments are being exempted from the full-text indexing
Default setting See below
Software Semantic MediaWiki
First version supported
Last version supported still available
Configuration Full-text search
Keyword full-text search

$smwgFulltextLanguageDetection is a configuration parameter that sets the property keys for special properties which value assignments are being exempted from the full-text search indexing since they are either insignificant or mostly represent single terms which are not required to be searched via a full-text search or a proximity. It was introduced in Semantic MediaWiki 2.5.0Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x..1

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

Default setting

$smwgFulltextSearchPropertyExemptionList = array(
	'_ASKFO', '_ASKST', '_ASKPA','_IMPO', '_LCODE', '_UNIT', '_CONV',
	'_TYPE', '_ERRT', '_INST', '_ASK', '_SOBJ', '_PVAL', '_PVALI',
	'_REDI', '_CHGPRO'
);

This means that the special properties using the property keys set will use the standard LIKE/NLIKE expression when used in connection with the ~/!~ operator. See the "propertyLabels" section of the respective internationalization file for a complete list of property key and the special properties they stand for.2

In Semantic MediaWiki 2.5.1Released on 22 April 2017 and compatible with MW 1.23.0 - 1.29.x. the default setting was extended by "_REDI"3 and in Semantic MediaWiki 3.0.0Released on an unknown date and compatible with MW 1.27.0 - 1.30.x. by "_CHGPRO"4.

Changing the default setting

Important noteImportant Note: The maintenance script "rebuildFulltextSearchTable.php"Allows to rebuild the full text search data table has to be run after changing the setting of this configuration parameter.

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

Also exempt special property "Allows pattern"Pattern to match a permissible value and special property "Has uniqueness constraint"Allows to restrict value annotation to be unique from being indexed
$smwgFulltextSearchPropertyExemptionList = array_merge(
	$smwgFulltextSearchPropertyExemptionList, array(
		'_PVUC', '_PVAP'
	)
);
NoteNote: Removing property keys from this setting is not recommended.

See also


References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:1481
  2. ^  Semantic MediaWiki: Source code quote for "propertyLabels"
  3. ^  Semantic MediaWiki: GitHub pull request gh:smw:2388
  4. ^  Semantic MediaWiki: GitHub issue gh:smw:2494