itscript/sphinxsearch-query-log-parser
Composer 安装命令:
composer require itscript/sphinxsearch-query-log-parser
包简介
SphinxSearch query log parser
README 文档
README
By default parser supports formats:
[Fri Jun 29 21:17:58 2007] 0.004 sec 0.004 sec [all/0/rel 35254 (0,20)] [lj] test
[Fri Jun 29 21:20:34 2007] 0.024 sec 0.024 sec [all/0/rel 19886 (0,20) @channel_id] [lj] test
Installation
You can install directly via Composer:
$ composer require "itscript/sphinxsearch-query-log-parser":"^1.0"
Basic usage
$log_line = '[Fri Jun 29 21:17:58 2007] 0.004 sec 0.004 sec [all/0/rel 35254 (0,20)] [lj] test'; $parser = new \ITS\SphinxSearchQueryLogParser\Parser(); /** @var \ITS\SphinxSearchQueryLogParser\Log $log */ $log = $parser->parse($log_line); // it is equal to $log = (new \ITS\SphinxSearchQueryLogParser\Log()) ->setQueryDate(new \DateTimeImmutable('2007-06-29 21:17:58')) ->setRealTime(0.004) ->setWallTime(0.004) ->setMatchMode('all') ->setFiltersCount(0) ->setSortMode('rel') ->setTotalMatches(35254) ->setOffset(0) ->setLimit(20) ->setIndexName('lj') ->setQuery('test');
统计信息
- 总下载量: 67
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-28