Commit bff43b9b by 段启岩

搜索结果过滤空字段

parent 5df61b4d
......@@ -2,6 +2,7 @@ package cn.meteor.beyondclouds.modules.search.entity;
import cn.meteor.beyondclouds.modules.blog.dto.BlogDetailDTO;
import cn.meteor.beyondclouds.core.queue.message.DataItemType;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
......@@ -90,6 +91,7 @@ public class SearchItem<T> {
@Field(index = false, type = FieldType.Date)
private Date updateTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
private T extra;
public static SearchItem of(BlogDetailDTO blogDetail) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment