2017 © Pedro Peláez
 

library solr-query-component

Build Solr queries with ease

image

internations/solr-query-component

Build Solr queries with ease

  • Thursday, December 21, 2017
  • by lstrojny
  • Repository
  • 35 Watchers
  • 64 Stars
  • 79,734 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 1 Open issues
  • 19 Versions
  • 6 % Grown

The README.md

SolrQueryComponent

Test, (*1)

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., (*2)

Examples

Build name:"John Doe"^100, (*3)

<?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:, (*4)

<?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/., (*5)

The Versions

21/12 2017
21/08 2013
25/03 2013

0.3.0

0.3.0.0

Build Solr queries with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max Beutel
by Michael Weinrich

14/03 2013

0.2

0.2.0.0

Build Solr queries with ease

  Sources   Download

MIT

The Development Requires

by Max Beutel
by Michael Weinrich