Extension:CirrusSearch/Profiles/tr

CirrusSearch, arama sıralaması, indeksleme vb. Gibi indekslemenin çeşitli yönlerini etkileyen birçok ayarlanabilir parametreye sahiptir. Bu parametreler, belirli bir profil türü ve bağlamı için ayarları tanımlayan veri kümeleri olarak adlandırılan "profiller" adı verilen veri kümeleri halinde düzenlenir. Her profil türünün ve bağlamının varsayılan bir profil adı vardır ve bu, yapılandırma değişkenleri, URL parametreleri veya kullanıcı ayarları ayarlanarak geçersiz kılınabilir.

Profil türü
Profil türü, yeniden çekirdek yapılandırması, benzerlik yapılandırması, sıralama işlevleri kümesi vb. gibi yapılandırma veya ayarlama için kullanılan bir veri türüdür. Farklı profil türleri farklı veriler içerir ve genellikle birbirleriyle uyumlu değildir. Aşağıdaki profil türleri kodda tanımlanmıştır:


 * Defines settings for the completion suggester.
 * Defaults in file :
 * Configuration variable :
 * Configuration variable :


 * Defines settings for merging results from cross-wiki searches.
 * Defaults in file :
 * Configuration variable :
 * Configuration variable :


 * Defines settings for building the elasticsearch query during fulltext searches
 * Default in file :
 * Configuration variable :
 * Configuration variable :


 * Defines settings for building the elasticsearch phrase suggest query (did you mean? suggestions)
 * Default in file :
 * Configuration variable :
 * Configuration variable :


 * Defines configuration for ranking search results.
 * Defaults in file :
 * Configuration variable :
 * Configuration variable :


 * Defines functional expressions to be used in scoring search results.
 * Defaults in file :
 * Configuration variable :
 * Configuration variable :


 * Defines settings for the sanitization process running in the background (check for missing updates)
 * Defaults in file :
 * Defaults in file :


 * Defines similarity configurations
 * Defaults in file :
 * Configuration variable :
 * Configuration variable :

Note that profiles defined in both default files and config settings, and other repositories, should have unique names across the type. Extensions can define their own profile types and add profiles to the list of available profiles of existing types, either through using the variables above or by defining their own profile repositories.

Wikibase
Wikibase extensions, such as has its own profiles defined, and also adds some profiles to the ones specified above:
 * Added rescore profiles that are used for Wikibase entities.
 * Defaults in file:
 * Configuration variable :
 * Configuration variable :


 * Added functional expressions to be used in scoring search results.
 * Defaults in file :
 * Defaults in file :

Wikibase types:
 * Configuration for wikibase query builder prefix search
 * Defaults in file:
 * Configuration variable :
 * Configuration variable :

Context
Context defines in which kind of environment a profile is being used - i.e., a rescore profile can be applied to regular search, prefix search, Wikibase search, etc., which may require different settings (though still the same type of settings, thus the same data structure). Context is secondary to profile type - the same profile type always uses the same data structure, but can use different profile names and thus different settings in different contexts.

The following contexts are defined out of the box:
 * — default context that is applied unless some other context is specified
 * — used when prefix search is performed
 * — Wikibase prefix search.

Profile selection
The profile to use for specific operation is defined by the following procedure: The set of overrides is as follows:
 * 1) Define the profile type and context in which we are operating (see above).
 * 2) For the profile type,context pair scan the set of override possibilities that are available - such as URI overrides, user preference overrides, config overrides, etc. in order of priority. Default priority is URI override on the top, then user preference, then config.
 * 3) If override is set, use that value as the profile name.
 * 4) Otherwise, use the default value for the profile,context pair.
 * 5) Fetch the profile with this name. If the profile with the overridden name does not exist, use the default profile (i.e., the profile with the default name).

Note that the same type can use the same override setting in different contexts, especially for URI override. This is a good practice for URI overrides, since they are per-request and thus used only in one context, but not a good practice for persistent overrides, like user or config overrides.