aboutsummaryrefslogtreecommitdiffstats
path: root/includes/search/SearchIndexField.php
Commit message (Collapse)AuthorAgeFilesLines
* pager: Clean up file headers and `@ingroup`Timo Tijhof2022-09-291-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Follows similar commits to the objectcache, rdbms, filerepo, jobqueue components and other areas [1]. * Remove duplicate descriptions from file blocks in favour of class doc blocks. This reduces needless duplication and was often incorrect or outdated, and helps (ironically) to make the file header more consistently visually ignorable. * Remove `ingroup` from file blocks in class files as otherwise the file is indexed twice (e.g. in Doxygen) which makes navigation more messy. * Fix non-standard `@unstable for implementation` annotations in favour of `@stable to type` as per T257789 and <https://www.mediawiki.org/wiki/Stable_interface_policy>. While at it, fix the only other outstanding uses of `@stable for` in core as well in a handful of context/, logging/ and search/ files. [1] https://gerrit.wikimedia.org/r/q/message:ingroup+owner:Krinkle Bug: T257789 Change-Id: Ided3c5ab69e1b587b1b76a3c97a7cdb88f21e130
* Stability annotations for interfaces.daniel2020-07-071-0/+1
| | | | | | | | | Per the Stable Interface Policy, PHP interfaces should not be directly implemented by extensions, unless they are marked to be safe for that purpose. Bug: T247862 Change-Id: Idd5783b70fc00c03d57f5b1a887f0e47c4d7b146
* Fix even more PSR12.Properties.ConstantVisibility.NotFoundReedy2020-05-161-12/+12
| | | | Change-Id: I5e04824d6fa6a4c36ce489850bb0ed7b4ac588f9
* Define index types as stringsStanislav Malyshev2019-04-181-8/+8
| | | | | | | This will allow to use them easier in JSON config files. Bug: T142809 Change-Id: I4053a87fe8e53c9b506604db6fad2f98f7dba150
* Add docstrings for text search index field typesAdam Wight2018-10-311-1/+13
| | | | Change-Id: Icd34ec79db4d8fd024a82045aaa9bedb6556caa8
* Fix spacing for @param and indent of function commentsUmherirrender2017-08-151-1/+7
| | | | | | | In phpcs.xml rename renamed sniffs and add the failing sniffs, because now the whole sniff is no longer excluded. Change-Id: If5b0bd16028761abc2c47ace9e97d37ad14bb36f
* Add missing type to @param documentationUmherirrender2017-08-111-1/+1
| | | | Change-Id: I6b2c9c7af9a281fe457099cc3a336a60a25e74aa
* Add SearchIndexField::getEngineHints()David Causse2017-06-221-0/+17
| | | | | | | | | | | | | | | Allows search engine clients that implement custom definitions to pass engine hints used at index time. Hints are a way to fine tune the behavior of the search engine when handling a particular field. As of now this is introduced for CirrusSearch to let SearchIndexField implementations to control how the noop script is configured. The noop hint with CirrusSearch allows to (for example): - ignore an update if a numeric value does not change for more than X% - control the merge strategy of complex fields Bug: T166589 Change-Id: Ia560e41d33013c30ac47e5a60543f8cb133e61fb
* Add new type SearchIndexField::INDEX_TYPE_SHORT_TEXTdcausse2016-09-261-0/+9
| | | | | | Useful for short technical strings such as mime types. Change-Id: If440378f2b7004abed87eca4bbde767212c4b062
* Remove SourceIndexField FLAG_SOURCE_DATAdcausse2016-09-011-9/+0
| | | | Change-Id: I080f06a5a09f2d67a153b491555d0dbf65c626d0
* Add DEFAULTSORT to search index field datadcausse2016-08-291-0/+10
| | | | | | | | | | | Added FLAG_SOURCE_DATA to support additional data that is not supposed to be part of the default mapping. Should merged with I1484c2e62788bedb57a42869a5fb25cd8f64482f, otherwize rebuilding an index may add an extra field to CirrusSearch mapping. Bug: T134978 Change-Id: Ia41f8eeb9dd4f764543bdd4d71b7a50de8101101
* Improve comments on fields and fix opening_text - needs no highlights.Stanislav Malyshev2016-07-081-2/+4
| | | | Change-Id: Iad6876aae109ad84c5534619f47c72edc900d704
* Create API to allow content handlers to handle structured data definitionsStanislav Malyshev2016-07-061-0/+63
Change-Id: Ia1738803c42f6114575587c1c838fec62b6f54aa Bug: T89733