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

Lucene 创建/更新文章索引失败(空指针异常),导致发布/更新文章失败 #91

Open
ronger-x opened this issue Jun 7, 2022 · 2 comments

Comments

@ronger-x
Copy link
Member

ronger-x commented Jun 7, 2022

问题代码定位:

// 草稿不更新索引
if (isUpdate) {
    log.info("更新文章索引,id={}", newArticle.getIdArticle());
    luceneService.updateArticle(newArticle.getIdArticle().toString());
} else {
    log.info("写入文章索引,id={}", newArticle.getIdArticle());
    luceneService.writeArticle(newArticle.getIdArticle().toString());
}
@acaterpillar

This comment was marked as spam.

@ronger-x
Copy link
Member Author

复现步骤:

  1. 保存文章为草稿
  2. 修改草稿后发布文章

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