Change-Id: Icd34ec79db4d8fd024a82045aaa9bedb6556caa8
* @since 1.28
*/
interface SearchIndexField {
* @since 1.28
*/
interface SearchIndexField {
+ /**
+ * TEXT fields are suitable for natural language and may be subject to
+ * analysis such as stemming.
+ *
+ * Read more:
+ * https://wikimediafoundation.org/2018/08/07/anatomy-search-token-affection/
+ * https://wikimediafoundation.org/2018/09/13/anatomy-search-variation-under-nature/
+ */
const INDEX_TYPE_TEXT = 0;
const INDEX_TYPE_TEXT = 0;
+ /**
+ * KEYWORD fields are indexed without any processing, so are appropriate
+ * for e.g. URLs. The content will often consist of a single token.
+ */
const INDEX_TYPE_KEYWORD = 1;
const INDEX_TYPE_INTEGER = 2;
const INDEX_TYPE_NUMBER = 3;
const INDEX_TYPE_KEYWORD = 1;
const INDEX_TYPE_INTEGER = 2;
const INDEX_TYPE_NUMBER = 3;