Skip to content

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

Description

@ronger-x

问题代码定位:

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions