不为失败找理由,要为成功找方法。

es memory lock的问题

回复

Elasticsearchbenhairui 发起了问题 • 2 人关注 • 0 个回复 • 3984 次浏览 • 2017-11-10 17:58 • 来自相关话题

社区支持 Markdown 编辑器

默认分类medcl 发表了文章 • 4 个评论 • 3841 次浏览 • 2017-11-10 17:36 • 来自相关话题

为了改善大家的创作体验,提高大家的写作和分享热情!?,经过两天的不懈奋斗,终于把 Markdown 编辑器搬上来了。
目前只支持文章的发布,可以通过切换编辑器来选择 Markdown 编辑模式。
希望不要再以编辑器作为理由发只有链接的文章了。
???????????


  • 支持 Github 风格的 Markdown 格式
  • 支持本站附件功能
  • 支持 emoj 符号
  • 支持自动的页面导航
  • 以前的文章可再次编辑,切换 Markdown 模式然后修改保存

    如何使用?

    1. 点击【发起】,选择文章
    2. 切换绿色按钮,将编辑器切换到 Markdown,然后在文本框内输入 Markdown 格式的内容即可。


      在线 Markdown 脚本编辑预览工具:https://elasticsearch.cn/stati ... down/

      ----

      以下为样式测试参考,忽略其意义。

      1510307393004.jpg



      ----------- 常用格式-----------------

      ```

      标题1

      标题2

      标题3

      标题4

      标题5
      标题6

      超大标题 //等于号写于文字下方
      ===
      标题 //同超大标题
      ---

      短代码
      注:长代码块,用三个: `

      This is the first level of quoting.

      This is nested blockquote.

      Back to the first level.


  • Red
  • Green
  • Blue

  • Red
  • Green
  • Blue

  • Red
  • Green
  • Blue

    1. 这是第一个
    2. 这是第二个
    3. 这是第三个

    • *
      *
      ***

  • Red
  • Green
  • Blue

  • Red
  • Green
  • Blue

  • Red
  • Green
  • Blue

    1. 这是第一个
    2. 这是第二个
    3. 这是第三个

    • *
      *
      ***

  • Light weight, low footprint, memory requirement should < 100MB
  • Easy to deploy, no runtime or dependency required
  • Easy to use, no programming or scripts ability needed, out of box features


    Screenshoot


    <img width="800" alt="What a Spider! GOPA Spider!" src="" rel="nofollow" target="_blank">https://raw.githubusercontent. ... gt%3B


    ---


  • How to use
  • Setup
  • Download Pre Built Package
  • Compile The Package Manually
  • Optional Config
  • Start
  • Stop
  • Configuration
  • UI
  • API
  • Contributing
  • License



    How to use


    Setup


    First of all, get it, two opinions: download the pre-built package or compile it yourself.

    Download Pre Built Package


    Go to [Release](https://github.com/infinitbyte/gopa/releases) or [Snapshot](https://github.com/infinitbyte ... leases) page, download the right package for your platform.

    Note: Darwin is for Mac

    Compile The Package Manually


  • Mac/Linux: Run make build to build the Gopa.

  • Windows: Checkout this wiki page - [How to build GOPA on windows](https://github.com/infinitbyte ... indows).

    So far, we have:

    gopa, the main program, a single binary.

    config/, elasticsearch related scripts etc.

    gopa.yml, main configuration for gopa.



    Optional Config


    By default, Gopa works well except indexing, if you want to use elasticsearch as indexing, follow these steps:

  • Create a index in elasticsearch with script config/gopa-index-mapping.sh


    Example
    curl -XPUT "http://localhost:9200/gopa-index" -H 'Content-Type: application/json' -d'
    {
    "mappings": {
    "doc": {
    "properties": {
    "host": {
    "type": "keyword",
    "ignore_above": 256
    },
    "snapshot": {
    "properties": {
    "bold": {
    "type": "text"
    },
    "url": {
    "type": "keyword",
    "ignore_above": 256
    },
    "content_type": {
    "type": "keyword",
    "ignore_above": 256
    },
    "file": {
    "type": "keyword",
    "ignore_above": 256
    },
    "h1": {
    "type": "text"
    },
    "h2": {
    "type": "text"
    },
    "h3": {
    "type": "text"
    },
    "h4": {
    "type": "text"
    },
    "hash": {
    "type": "keyword",
    "ignore_above": 256
    },
    "id": {
    "type": "keyword",
    "ignore_above": 256
    },
    "images": {
    "properties": {
    "external": {
    "properties": {
    "label": {
    "type": "text"
    },
    "url": {
    "type": "keyword",
    "ignore_above": 256
    }
    }
    },
    "internal": {
    "properties": {
    "label": {
    "type": "text"
    },
    "url": {
    "type": "keyword",
    "ignore_above": 256
    }
    }
    }
    }
    },
    "italic": {
    "type": "text"
    },
    "links": {
    "properties": {
    "external": {
    "properties": {
    "label": {
    "type": "text"
    },
    "url": {
    "type": "keyword",
    "ignore_above": 256
    }
    }
    },
    "internal": {
    "properties": {
    "label": {
    "type": "text"
    },
    "url": {
    "type": "keyword",
    "ignore_above": 256
    }
    }
    }
    }
    },
    "path": {
    "type": "keyword",
    "ignore_above": 256
    },
    "sim_hash": {
    "type": "keyword",
    "ignore_above": 256
    },
    "lang": {
    "type": "keyword",
    "ignore_above": 256
    },
    "size": {
    "type": "long"
    },
    "text": {
    "type": "text"
    },
    "title": {
    "type": "text",
    "fields": {
    "keyword": {
    "type": "keyword"
    }
    }
    },
    "version": {
    "type": "long"
    }
    }
    },
    "task": {
    "properties": {
    "breadth": {
    "type": "long"
    },
    "created": {
    "type": "date"
    },
    "depth": {
    "type": "long"
    },
    "id": {
    "type": "keyword",
    "ignore_above": 256
    },
    "original_url": {
    "type": "keyword",
    "ignore_above": 256
    },
    "reference_url": {
    "type": "keyword",
    "ignore_above": 256
    },
    "schema": {
    "type": "keyword",
    "ignore_above": 256
    },
    "status": {
    "type": "integer"
    },
    "updated": {
    "type": "date"
    },
    "url": {
    "type": "keyword",
    "ignore_above": 256
    }
    }
    }
    }
    }
    }
    }'



    _Note: Elasticsearch version should > v5.0_

  • Enable index module in gopa.yml, update the elasticsearch's setting:
    ```
  • module: index
    enabled: true
    ui:
    enabled: true
    elasticsearch:
    endpoint: http://dev:9200
    index_prefix: gopa-
    username: elastic
    password: changeme
    ```



    Start


    Gopa doesn't require any dependencies, simply run ./gopa to start the program.

    Gopa can be run as daemon(Note: Only available on Linux and Mac):


    Example


    ➜ gopa git:(master) ✗ ./bin/gopa --daemon
    ________ ________ __________ _____
    / _____/ \_____ \\______ \/ _ \
    / \ ___ / | \| ___/ /_\ \
    \ \_\ \/ | \ | / | \
    \______ /\_______ /____| \____|__ /
    \/ \/ \/
    [gopa] 0.10.0_SNAPSHOT
    ///last commit: 99616a2, Fri Oct 20 14:04:54 2017 +0200, medcl, update version to 0.10.0 ///

    [10-21 16:01:09] [INF] [instance.go:23] workspace: data/gopa/nodes/0
    [gopa] started.



    Also run `./gopa -h` to get the full list of command line options.


    Example

    ➜ gopa git:(master) ✗ ./bin/gopa -h
    ________ ________ __________ _____
    / _____/ \_____ \\______ \/ _ \
    / \ ___ / | \| ___/ /_\ \
    \ \_\ \/ | \ | / | \
    \______ /\_______ /____| \____|__ /
    \/ \/ \/
    [gopa] 0.10.0_SNAPSHOT
    ///last commit: 99616a2, Fri Oct 20 14:04:54 2017 +0200, medcl, update version to 0.10.0 ///

    Usage of ./bin/gopa:
    -config string
    the location of config file (default "gopa.yml")
    -cpuprofile string
    write cpu profile to this file
    -daemon
    run in background as daemon
    -debug
    run in debug mode, wi
    -log string
    the log level,options:trace,debug,info,warn,error (default "info")
    -log_path string
    the log path (default "log")
    -memprofile string
    write memory profile to this file
    -pidfile string
    pidfile path (only for daemon)
    -pprof string
    enable and setup pprof/expvar service, eg: localhost:6060 , the endpoint will be: http://localhost:6060/debug/pprof/ and http://localhost:6060/debug/vars</pre>




    ### Stop

    It's safety to press `ctrl+c` stop the current running Gopa, Gopa will handle the rest,saving the checkpoint,
    you may restore the job later,the world is still in your hand.

    If you are running `Gopa` as daemon, you may stop it like this:

    ```
    kill -QUIT `pgrep gopa`
    ```

    ## Configuration

    ## UI

  • Search Console <a href="http://127.0.0.1:9001/" rel="nofollow" target="_blank">http://127.0.0.1:9001/</a>
  • Admin Console <a href="http://127.0.0.1:9001/admin/" rel="nofollow" target="_blank">http://127.0.0.1:9001/admin/</a>

    API


  • TBD


    Contributing


    You are sincerely and warmly welcomed to play with this project,
    from UI style to core features,
    or just a piece of document,
    welcome! let's make it better.


    License
    =======
    Released under the [Apache License, Version 2.0](https://github.com/infinitbyte ... ICENSE) .


    Also XSS Test

    alert('XSS test');

Elasticsearch自动写副本分片失败

回复

Elasticsearchximing 发起了问题 • 1 人关注 • 0 个回复 • 2412 次浏览 • 2017-11-10 16:58 • 来自相关话题

logstash output email 日志抛错

Logstashluosm 回复了问题 • 4 人关注 • 3 个回复 • 10895 次浏览 • 2021-02-05 10:08 • 来自相关话题

java API 聚合

Elasticsearchredhat 回复了问题 • 2 人关注 • 1 个回复 • 1765 次浏览 • 2017-11-10 18:44 • 来自相关话题

date_index_name processor 如何设置动态的 prefix

Elasticsearchmedcl 回复了问题 • 2 人关注 • 2 个回复 • 1994 次浏览 • 2017-11-13 12:01 • 来自相关话题

elastic query内容包含"+"号,无法获得预期查询结果怎么办?

Elasticsearchhufuman 回复了问题 • 2 人关注 • 1 个回复 • 2106 次浏览 • 2017-11-11 06:51 • 来自相关话题

Elasticsearch多汇聚查询返回数据格式

Elasticsearchzhangg7723 回复了问题 • 2 人关注 • 1 个回复 • 2604 次浏览 • 2017-11-10 14:05 • 来自相关话题

存在自有 mapping 会忽略动态模板中的 mapping 么?

Elasticsearchrochy 回复了问题 • 5 人关注 • 3 个回复 • 2597 次浏览 • 2018-11-06 17:44 • 来自相关话题

再次打扰,向你请教一下es集群节点的如果出现硬盘只读的问题

Elasticsearchzhangg7723 回复了问题 • 3 人关注 • 2 个回复 • 2299 次浏览 • 2017-11-10 14:09 • 来自相关话题

社区日报 第96期 (2017-11-10)

社区日报laoyang360 发表了文章 • 0 个评论 • 1445 次浏览 • 2017-11-10 06:37 • 来自相关话题

1、源码解析 | elasticsearch 索引创建和更新
http://t.cn/RlHuOKx
2、业界良心 |  《Elasticsearch5.6.3 Java API 中文手册》
https://elasticsearch.cn/article/362
3、PPT | 基于 Mesos/Docker 的 Elasticsearch 容器化私有云
http://t.cn/RlHuTQR 
4、只等你来 | Elastic Meetup 广州交流会
https://elasticsearch.cn/article/364

编辑:laoyang360
归档:https://elasticsearch.cn/article/365
订阅:https://tinyletter.com/elastic-daily
 

Elasticsearch 2.4.6 启动后闪退,看不到报错信息

Elasticsearchandyfz 回复了问题 • 2 人关注 • 2 个回复 • 11195 次浏览 • 2017-11-28 11:14 • 来自相关话题

启动kibana出现[fatal] Error: listen EADDRNOTAVAIL 112.74.177.142:5601

KibanaZQY_961 回复了问题 • 5 人关注 • 2 个回复 • 14346 次浏览 • 2018-03-22 15:30 • 来自相关话题

logstash解析嵌套json

回复

Logstashzyjgsh 发起了问题 • 1 人关注 • 0 个回复 • 7181 次浏览 • 2017-11-09 15:24 • 来自相关话题

elasticsearch 搜索@符号,查不出结果

Elasticsearcheric930721 回复了问题 • 4 人关注 • 2 个回复 • 2092 次浏览 • 2017-11-10 09:33 • 来自相关话题