package com.microservices.cms.doc.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * CmsDoc with full-text search score
 * 用于全局搜索结果，包含全文搜索相关度评分
 *
 * @author otto
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CmsDocWithScore extends CmsDoc implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 全文搜索相关度评分（来自 MySQL MATCH...AGAINST）
     */
    private Double searchScore;
}
