Complete the code to analyze the text "Quick Brown Fox" using the standard analyzer.
{
"analyzer": "[1]",
"text": "Quick Brown Fox"
}The standard analyzer is the default and breaks text into terms on word boundaries.
Complete the code to analyze the text "Running runner runs" using the English stemmer analyzer.
{
"tokenizer": "standard",
"filter": ["[1]"],
"text": "Running runner runs"
}The porter_stem filter applies the Porter stemming algorithm to reduce words to their root form.
Fix the error in the analyzer definition to correctly lowercase the text "HELLO WORLD".
{
"tokenizer": "standard",
"filter": ["[1]"],
"text": "HELLO WORLD"
}The lowercase filter converts all tokens to lowercase, which is needed here.
Fill both blanks to analyze the text "Cats running" with a custom analyzer that uses the standard tokenizer and the lowercase and porter_stem filters.
{
"tokenizer": "[1]",
"filter": ["[2]", "porter_stem"],
"text": "Cats running"
}The standard tokenizer splits text into words, and the lowercase filter converts tokens to lowercase before stemming.
Fill all three blanks to create an analyzer that tokenizes text on whitespace, lowercases tokens, and removes English stop words.
{
"tokenizer": "[1]",
"filter": ["[2]", "[3]"],
"text": "The quick brown fox jumps over the lazy dog"
}The whitespace tokenizer splits text on spaces, lowercase filter converts tokens to lowercase, and stop filter removes common English stop words.