Spec-Zone.ru › Elasticsearch 8
›Elasticsearch Руководство [8.17] ›Анализ текста ›Справочник по токенайзерам

Токенайзер lowercase

Токенайзер lowercase, подобно токенайзеру letter, разбивает текст на термины всякий раз, когда встречается символ, который не является буквой, но также приводит все термины к нижнему регистру. Он функционально эквивалентен токенайзеру letter в сочетании с фильтром токенов lowercase, но более эффективен, так как выполняет оба шага за один проход.

Пример вывода

resp = client.indices.analyze(
    tokenizer="lowercase",
    text="The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.",
)
print(resp)
response = client.indices.analyze(
  body: {
    tokenizer: 'lowercase',
    text: "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone."
  }
)
puts response
const response = await client.indices.analyze({
  tokenizer: "lowercase",
  text: "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.",
});
console.log(response);
POST _analyze
{
  "tokenizer": "lowercase",
  "text": "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone."
}

Вышеприведённое предложение произведёт следующие термины:

[ the, quick, brown, foxes, jumped, over, the, lazy, dog, s, bone ]

Настройка

Токенайзер lowercase не настраивается.

© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/analysis-lowercase-tokenizer.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API