$smwgFulltextSearchPropertyExemptionList

From semantic-mediawiki.org


Configuration parameter details:
Name $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
Since version
Until version still available
Configuration Full-text search · Experimental
Keyword full-text search · data store · relational database · sql store · sql database · experimental


$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 configuration parameter only takes effect if the full-text search feature was enabled.

Default setting[edit]

$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 with this configuration parameter will use the standard LIKE/NLIKE expression when used in connection with the ~/!~ operator. See the "propertyLabels" section of the respective internationalization file2 for a complete list of property keys and the special properties they stand for that have to be added to set changes to this configuration parameter. (→ Search for special properties by key)

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 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. by "_CHGPRO"4.

Changing the default setting[edit]

To modify the setting to this configuration parameter, 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'
	)
);
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.

Removing property keys from the setting of this configuration parameter is not recommended.

See also[edit]


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