• 搜索中心服务


    服务简码 hsrh

    默认端口 8090

    组件编码 hzero-search

    简介

    1.1 概述

    针对开发人员,搜索是一项被广泛需要的功能,搜索服务组件用于客制化管理ES的搜索功能,对ES中的索引创建更新、数据自定义查询、源数据接口同步、同步日志记录等功能进行可视化的管理,使搜索变的配置性强,查询变的更加简单。

    1.2 组件坐标

    <dependency>
        <groupId>org.hzero</groupId>
        <artifactId>hzero-search</artifactId>
        <version>${hzero.service.version}</version>
    </dependency>
    

    1.3 主要功能

    1.4 服务配置参数

    elasticsearch:
      clusterNodes: ${ELASTICSEARCH_DEFAULT_URL:127.0.0.1:9200}
      username: es_user
      password: password
      max-connect-num: 50
      max-connect-per-route: 10
    

    开发指导

    {
      "scrollId": null,
      "totalShards": 1,
      "successfulShards": 1,
      "skippedShards": 0,
      "shardFailures": [],
      "clusters": {
        "total": 0,
        "successful": 0,
        "skipped": 0,
        "fragment": true
      },
      "took": {
        "nanos": 18000000,
        "micros": 18000,
        "microsFrac": 18000,
        "millisFrac": 18,
        "secondsFrac": 0.018,
        "minutesFrac": 0.0003,
        "hoursFrac": 0.000005,
        "daysFrac": 2.0833333333333333e-7,
        "hours": 0,
        "minutes": 0,
        "millis": 18,
        "days": 0,
        "seconds": 0,
        "stringRep": "18ms"
      },
      "hits": {
        "hits": [],
        "totalHits": 0,
        "maxScore": "NaN",
        "sortFields": null,
        "collapseField": null,
        "collapseValues": null,
        "fragment": true
      },
      "aggregations": null,
      "suggest": null,
      "timedOut": false,
      "terminatedEarly": null,
      "numReducePhases": 1,
      "failedShards": 0,
      "profileResults": {},
      "fragment": false
    }
    

    展望

    1、接口定义

    2、索引:

    3、同步:

    4、查询: