Skip to content

Commit

Permalink
chore: add status.expert to index spec
Browse files Browse the repository at this point in the history
  • Loading branch information
guqing committed Jan 23, 2024
1 parent a42261b commit 5faccd9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ public void onApplicationEvent(@NonNull ApplicationContextInitializedEvent event
.setName("status.phase")
.setIndexFunc(
simpleAttribute(Post.class, post -> post.getStatusOrDefault().getPhase())));
indexSpecs.add(new IndexSpec()
.setName("status.excerpt")
.setIndexFunc(
simpleAttribute(Post.class, post -> post.getStatusOrDefault().getExcerpt())));
});
schemeManager.register(Category.class);
schemeManager.register(Tag.class);
Expand Down

0 comments on commit 5faccd9

Please sign in to comment.