internations/solr-query-component 问题修复 & 功能扩展

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

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

internations/solr-query-component

最新稳定版本:0.13.0

Composer 安装命令:

composer require internations/solr-query-component

包简介

Build Solr queries with ease

README 文档

README

Test

Build Solr queries with ease

SolrQueryComponent helps building Solr/Lucene/ElasticSearch queries with a query builder API. It is independent of the concrete client library and can be used with e.g. PECL Solr or Solarium.

Examples

Build name:"John Doe"^100

<?php use InterNations\Component\Solr\Expression\ExpressionBuilder; $eb = new ExpressionBuilder(); echo $eb->field('name', $eb->boost($eb->eq('John Doe'), 100));

And the same with the query string object:

<?php use InterNations\Component\Solr\Query\QueryString; echo (new QueryString('name:<name>^<boost>')) ->setPlaceholder('name', 'John Doe') ->setPlaceholder('boost', 100);

Learn more on how to use the component in docs/.

统计信息

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

GitHub 信息

  • Stars: 63
  • Watchers: 37
  • Forks: 14
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04