smallhomelab/lucene-query-parser 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

smallhomelab/lucene-query-parser

Composer 安装命令:

composer require smallhomelab/lucene-query-parser

包简介

Basic Lucene Query Parser for Search and Filter

README 文档

README

Lucene query string parser to be used as web api query or filter string. Base code is come from https://github.com/ralphschindler/basic-query-filter

Example queries in this language:

  • name: apple
  • price: > 100
  • price: > 100 AND active: = 1
  • product.price: > 100 AND category.id: = 7
  • name:=~ "Foo%"
  • created_at: > "2017-01-01" and created_at: < "2017-01-31"
  • status:= 1 AND (name:= "PHP Rocks" || name:= "I ♥ API's")

Install

composer require "smallhomelab/lucene-query-parser"

Usage

$parseTree = (new LucenenQueryParser\Parser)->parse($filter);

// Getting String
$str = $parseTree->toString();

// Getting Array
$arr = $parseTree->toArray();

// Getting Simple Array
$arrSimple = $parseTree->toSimpleArray();

统计信息

  • 总下载量: 1.24k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-07-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固