code: @Override
      protected TokenStreamComponents createComponents(String fieldName)
      {
          Tokenizer tokenizer = new HanLPTokenizer(HanLP.newSegment().enableOffset(true), filter, enablePorterStemming);
          return new TokenStreamComponents(tokenizer);
      }
docs: 重载Analyzer接口，构造分词组件