Questions tagged [solarium]

Solarium is an open-source Solr client library and query builder for PHP applications.

Solarium is an open-source client library and query builder for applications.

In some cases, for example, if you want light weight solution to interact with Solr, you may use generic PHP functions such as file_get_contents to get Solr query results and json_decode to get result objects. Of course, if you set wt=json in the query URL supplied to file_get_contents, you will able to deal with it using json_decode.

Useful Links

154 questions
1
vote
0 answers

Solr Stemming Result Documents do not show up even though counted in the resultset

I'm new to solr. I'm trying to configure solr 6.3 using solarium but I run on a stemming issue. My collection of documents has words like: "call", "calls", "called", "calling" and "serv", "serve", "serves", "served" and "serving". I have 'serv' in…
entropy
  • 23
  • 5
1
vote
3 answers

Get list of all distinct values in multivalued field in Solr

I have data in Solr that is being imported from a postgres database. The docs look something like this (much simplified): "docs": [ { "id": "1", "strings_ss": [ "abc", "bcd", "efg", ], …
Barbara Laird
  • 12,599
  • 2
  • 44
  • 57
1
vote
1 answer

Setting Timezone with Solarium PHP

So this Timezone option looks very useful. https://cwiki.apache.org/confluence/display/solr/Working+with+Dates#WorkingwithDates-TZ Example,…
Tim
  • 4,471
  • 5
  • 36
  • 42
1
vote
2 answers

How to use Solarium with Laravel?

I've included Solarium as required on composer.json, did composer install and everything went fine. However, when I try to create a client stance, I get an error: Class 'Solarium\Client' not found The code I'm using goes like this: public function…
Paulo Manrique
  • 263
  • 1
  • 4
  • 13
1
vote
1 answer

How to use facet query along with facet field in solarium?

I want alist of cities in facet for a particular list of states in fq. So my query is: fq: {!tag=state}state_id:(25 41) facet query: state_id:(25 41) facet field: {!ex=state}city_id This works perfectly fine in Solr Admin, whereas when I query it…
Moghira
  • 317
  • 5
  • 10
1
vote
0 answers

solarium-3x and Curl :Maximum execution time of 30 seconds exceeded

I have to extract rich document and commit using solarium Client php for Apache Solr; in the documentation of solarium Curl is default Adapter then i dont need: $client->setAdapter('Solarium\Core\Client\Adapter\Curl'); Then I want to force the…
MedKostali
  • 223
  • 1
  • 5
  • 16
1
vote
1 answer

Solarium Ping request error : Solr HTTP error: Not Found (404)

I am new to Solr and I am trying to integrate it with my PHP application using Solarium. I tried running the ping query but it is failing and giving Solr HTTP error: Not Found (404) response. My PHP code is as follows: $config = array( …
Ayush
  • 741
  • 9
  • 19
1
vote
3 answers

Sum field and sort on Solr

I'm implementing a grouped search in Solr. I'm looking for a way of summing one field and sort the results by this sum. With the following data example I hope it will be clearer. { [ { "id" : 1, "parent_id" : 22, …
Emilio Borraz
  • 516
  • 3
  • 17
1
vote
1 answer

Not able to load third party class in Symfony2

My main problem is, that i dont have access to Solarium (a third party libary) in my symfony2-project and I do not understand why. I have a symfony2 application and want to write my own Solr connector. Therefore I want to use Solarium. (IMPORTANT: I…
Rubinum
  • 547
  • 3
  • 18
1
vote
1 answer

PHP Solarium: Updating Parts of Documents

I want to update parts of a document in Apache Solr 4.0 with PHP Solarium, and not update the whole document. I know its possible in Solr (documentation in Solr), I just cant find any documentation on how to do this in Solarium. all the existing…
Pooya Saberian
  • 971
  • 2
  • 9
  • 16
1
vote
3 answers

How to implement solr and solarium in cakePHP

I have to integrate Solr search in one of my CakePHP project. I have installed Solr and Solarium using composer but could not find how to start searching using Solr. Is there any example code in CakePHP?
subu.purohit
  • 33
  • 1
  • 9
1
vote
1 answer

Start Solarium Client

I have problem with start Solarium Client, I downloaded it by Composer and GitHub according the wiki tutorial, it's ok, but I don't know what I must do now. When I tried this example code:
tomas
  • 153
  • 2
  • 13
1
vote
1 answer

Solr + Solarium: counter does not work with multi select facets

I'm working with Solr + Solarium. I have defined a multi facet search. Each facet options has counters behind them showing the number of returned results when you click on it. When selecting an option within a multi-select facet I would expect that…
alrededor
  • 21
  • 5
1
vote
1 answer

PHP Solarium - Composer Autoload giving class not found errors

I'm trying to get Solarium running on Centos 6.5 with an rpm install of PHP (5.3.3) and Apache HTTPD. I have followed the instructions on the website, creating a folder /var/www/php (which is in the include path in php.ini) and downloading…
1
vote
1 answer

Can Solarium return all facets provided by the requestHandler by default?

I have built our search system user interface with Solarium. I see that, prior to querying, I can easily set up my select query object using ->getFacetSet()->createFacetField('xyz')->setField('xyz')... But my Solr requestHandler already returns all…
Offlein
  • 665
  • 6
  • 22