用于elasticsearch的类sql命令行客户端
elseql的Python项目详细描述
否则你知道,对于查询查询
----------
elasticsearch的sql-like命令行/repl客户端,对于elasticsearch的sql-like命令行/repl客户端
*选择-请参见搜索语法
*描述[索引]
*设置选项[开关]
*帮助
<<<
select{fields}
[facets facet fields]
[script script field='script']
来自索引
[where condition]
[filter filter condition]
[ordery by order fields]
[limit[start,]count]
其中:
字段:'*'或要返回的字段名的逗号分隔列表
facet字段:要对
{field name}类似于{value}
{field name}in(value1,value2,…)
{field name}介于{min value}和{max value}
之间,而不是{where condition}
{where condition}和{where condition}
{where condition}或{where condition}
或where condition:
'用lucene语法查询'
筛选条件:
查询{where condition}-查询与条件相同的语法:存在字段{BR/>缺失字段{BR/>缺少{{BR/> > BR/>< BR/>命令字段:逗号分隔的字段名} [ASC.DESC] < BR/>< BR/>开始:分页的起始索引
计数:返回结果的最大数目
BR/>特殊极限启动的情况,count允许执行“滚动”查询(即结果将被成批返回):
start:-1-启用“滚动”查询
count:批大小-查询将返回{count}结果(实际上是每个碎片的{count}),并将重复,直到返回所有结果。
你正在做一次全表扫描)。注意,在
“scroll”模式下,sort和facets被禁用。从pypi的
sudo easy _sudo easy _安装elseql
sudo pip安装elseql
“scroll”模式下,sor命令也可以在不安装python和安装python安装程序的情况下运行,也可以在不安装python的情况下运行命令:
要做到这一点,您需要安装pyparsing、rawes和cmd2软件包,这些软件包在上一步中会自动安装。
sudo easy_install pyparsing
sudo easy_install rawes
sudo easy_install cmd2
cmd2软件包添加了一些与“命令行”相关的额外功能。最有用的是重定向:
elsesql>;从index where condition>;result.csv中选择id、field1、field2
请注意,由于“>;”用于重定向,因此需要在指定的where子句中使用gt(也可以使用lt、gte、lte)
----------
elasticsearch的sql-like命令行/repl客户端,对于elasticsearch的sql-like命令行/repl客户端
*选择-请参见搜索语法
*描述[索引]
*设置选项[开关]
*帮助
<<<
select{fields}
[facets facet fields]
[script script field='script']
来自索引
[where condition]
[filter filter condition]
[ordery by order fields]
[limit[start,]count]
其中:
字段:'*'或要返回的字段名的逗号分隔列表
facet字段:要对
{field name}类似于{value}
{field name}in(value1,value2,…)
{field name}介于{min value}和{max value}
之间,而不是{where condition}
{where condition}和{where condition}
{where condition}或{where condition}
或where condition:
'用lucene语法查询'
筛选条件:
查询{where condition}-查询与条件相同的语法:存在字段{BR/>缺失字段{BR/>缺少{{BR/> > BR/>< BR/>命令字段:逗号分隔的字段名} [ASC.DESC] < BR/>< BR/>开始:分页的起始索引
计数:返回结果的最大数目
BR/>特殊极限启动的情况,count允许执行“滚动”查询(即结果将被成批返回):
start:-1-启用“滚动”查询
count:批大小-查询将返回{count}结果(实际上是每个碎片的{count}),并将重复,直到返回所有结果。
你正在做一次全表扫描)。注意,在
“scroll”模式下,sort和facets被禁用。从pypi的
sudo easy _sudo easy _安装elseql
sudo pip安装elseql
“scroll”模式下,sor命令也可以在不安装python和安装python安装程序的情况下运行,也可以在不安装python的情况下运行命令:
要做到这一点,您需要安装pyparsing、rawes和cmd2软件包,这些软件包在上一步中会自动安装。
sudo easy_install pyparsing
sudo easy_install rawes
sudo easy_install cmd2
cmd2软件包添加了一些与“命令行”相关的额外功能。最有用的是重定向:
elsesql>;从index where condition>;result.csv中选择id、field1、field2
请注意,由于“>;”用于重定向,因此需要在指定的where子句中使用gt(也可以使用lt、gte、lte)