mirror of https://github.com/halo-dev/halo
chore: remove incorrect index declaration (#6427)
#### What type of PR is this? /milestone 2.19.x /area core /kind cleanup #### What this PR does / why we need it: 删除对文章错误的索引声明 #### Does this PR introduce a user-facing change? ```release-note None ```pull/6429/head
parent
58fe872844
commit
3822cbee15
|
@ -180,10 +180,6 @@ public class SchemeInitializer implements ApplicationListener<ApplicationContext
|
||||||
var contributors = post.getStatusOrDefault().getContributors();
|
var contributors = post.getStatusOrDefault().getContributors();
|
||||||
return contributors == null ? Set.of() : Set.copyOf(contributors);
|
return contributors == null ? Set.of() : Set.copyOf(contributors);
|
||||||
})));
|
})));
|
||||||
indexSpecs.add(new IndexSpec()
|
|
||||||
.setName("status.categories")
|
|
||||||
.setIndexFunc(
|
|
||||||
simpleAttribute(Post.class, post -> post.getStatusOrDefault().getExcerpt())));
|
|
||||||
indexSpecs.add(new IndexSpec()
|
indexSpecs.add(new IndexSpec()
|
||||||
.setName("status.phase")
|
.setName("status.phase")
|
||||||
.setIndexFunc(
|
.setIndexFunc(
|
||||||
|
|
Loading…
Reference in New Issue