Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これら 2 つのフィルターの違いは何ですか? 彼らは同じ効果を持っているようですか?
誰かがテキストにどのように適用されるかの例を提供できますか?
さて、最初のものは を提供しTokenizer、2番目のものはFilter;-)を提供します
Tokenizer
Filter
Tokenizer は 1 つしか持てないため、EdgeNGramTokenizerFactory は単一の単語を含むフィールドにのみ役立ちます。ドキュメントに提供する文字列を単語に分割する場合は、最初に別のトークナイザーが必要です。これは空白などで分割され、その後 EdgeNGramFilterFactory が必要になります。