【文件属性】:
文件名称:elasticsearch-abtest
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-02 07:25:21
Java
弹性搜索
概述
AbTestPlugin为搜索请求提供简单的A / B测试。 此插件通过[ab_rt]参数自动重写搜索目标索引。
用法
设置测试设置
curl -XPOST localhost:9201/sample-index/_abtest/settings -d '
{
"testcases": [
{
"test_name": "test1",
"index": "sample-index-a",
"percentage": 10
},
{
"test_name": "test2",
"index": "sample-index-b",
"percentage": 20
}
]
}'
执行测试
搜索目标索引由ab_rt参数重写。 在上述情况下,如果ab_rt参数为0-9,
【文件预览】:
elasticsearch-abtest-master
----.gitignore(19B)
----src()
--------main()
--------test()
----pom.xml(3KB)
----README.md(1KB)