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

8.7.1版本 _analyze 报错 #228

Closed
Doobetter opened this issue Aug 7, 2023 · 2 comments
Closed

8.7.1版本 _analyze 报错 #228

Doobetter opened this issue Aug 7, 2023 · 2 comments

Comments

@Doobetter
Copy link

GET _analyze
{
"analyzer": "query_ansj",
"text": "中国"
}

Caused by: java.lang.NullPointerException: Cannot invoke "String.length()" because "s" is null
at java.io.StringReader.(StringReader.java:51) ~[?:?]
at org.ansj.lucene7.AnsjAnalyzer.createComponents(AnsjAnalyzer.java:68) ~[?:?]

@shi-yuan
Copy link
Member

shi-yuan commented Sep 6, 2023

ansj lucene plug需要升级,会尽快处理

@shi-yuan
Copy link
Member

<dependency>
	<groupId>org.ansj</groupId>
	<artifactId>ansj_lucene9_plug</artifactId>
	<version>5.1.5.2</version>
</dependency>

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

2 participants