Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6.8.20 源码和jar包对不上 #282

Open
jiangyunpeng opened this issue Dec 27, 2022 · 0 comments
Open

v6.8.20 源码和jar包对不上 #282

jiangyunpeng opened this issue Dec 27, 2022 · 0 comments

Comments

@jiangyunpeng
Copy link

jiangyunpeng commented Dec 27, 2022

我检查发现v6.8.20 源码和jar包对不上

源码:

public class PinyinTokenizerFactory extends AbstractTokenizerFactory {

    private PinyinConfig config;

    public PinyinTokenizerFactory(IndexSettings indexSettings, Environment env, String name, Settings settings) {
        super(indexSettings, settings, name);
        config=new PinyinConfig(settings);
    }

    @Override
    public Tokenizer create() {
            return new PinyinTokenizer(config);
    }
}

jar包反编译之后:

/*
 * Decompiled with CFR 0.152.
 *
 * Could not load the following classes:
 *  org.apache.lucene.analysis.Tokenizer
 *  org.elasticsearch.common.settings.Settings
 *  org.elasticsearch.env.Environment
 *  org.elasticsearch.index.IndexSettings
 *  org.elasticsearch.index.analysis.AbstractTokenizerFactory
 */
public class PinyinTokenizerFactory
extends AbstractTokenizerFactory {
    private PinyinConfig config;

    public PinyinTokenizerFactory(IndexSettings indexSettings, Environment env, String name, Settings settings) {
        super(indexSettings, name, settings);
        this.config = new PinyinConfig(settings);
    }

    public Tokenizer create() {
        return new PinyinTokenizer(this.config);
    }
}

@jiangyunpeng jiangyunpeng changed the title v6.8.20 源码和包对不行 v6.8.20 源码和包对不上 Dec 27, 2022
@jiangyunpeng jiangyunpeng changed the title v6.8.20 源码和包对不上 v6.8.20 源码和jar包对不上 Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant