Lowercase tokenizer

Lowercase tokenizer

The lowercase tokenizer, like the letter tokenizer breaks text into terms whenever it encounters a character which is not a letter, but it also lowercases all terms. It is functionally equivalent to the letter tokenizer combined with the lowercase token filter, but is more efficient as it performs both steps in a single pass.

Example output

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

The above sentence would produce the following terms:

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

Configuration

The lowercase tokenizer is not configurable.