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
0
votes
0 answers

How i define my field name in schema.xml of apache solr to get just the name of the document files

I start working in solr 5.3.1 run solr server with : D:\solr\solr-5.3.1\bin>solr start ; Then I create a core in standalone mode : D:\solr\solr-5.3.1\bin>solr create -c mycore I need indexing from system files (word and pdf) and the schema API…
MedKostali
  • 223
  • 1
  • 5
  • 16
0
votes
0 answers

Solarium Exception in core php

I use Solarium on php on this website: http://dothejob.in/telamela-new/. When I choose any sub category this error will be displayed on the page. Fatal error: Uncaught exception 'Solarium\Exception\HttpException' with message 'Solr HTTP error:…
0
votes
0 answers

Class 'Symfony\Component\EventDispatcher\EventDispatcher' not found in /var/www/html/site/Solarium/Core/Client/Client.php on line 221

I am trying to use the Solarium library with Zend Framework 2 I put the library in external folder of my zend2 application I add this line to my Module.php: 'Solarium' => realpath(__DIR__ . '/../../../library/Solarium'), I add the config lines for…
Hicham
  • 1
  • 2
0
votes
1 answer

Solarium Highlighting using an array configuration

This query works for me. $hl = $query->getHighlighting(); $hl->setFields('autocomplete'); $hl->setSimplePrefix(''); $hl->setSimplePostfix(''); $resultSet = $client->select($query); $highlighting =…
Varun Hegde
  • 349
  • 2
  • 12
0
votes
1 answer

Solr search for different words with same meaning

I am using Solr with Solarium and I am trying to implement searching for different words with the same meaning. For example, if a user searched for photo, it would also return results for photograph and photographs. I have tried Implementing…
kyle
  • 1
  • 2
0
votes
1 answer

How to prevent Solr timeout during updates via php solarium

I am new to Solr. I am using the php library solarium to run a huge bundle of updates to a Solr instance. The problem is, that I am receiving a HttpException within my php-script: Solr HTTP error: HTTP request failed, Operation timed out after 10000…
Roman
  • 2,530
  • 2
  • 27
  • 50
0
votes
0 answers

PHP - solarium with composer and Silex

I've installed solarium with composer using below commands in ubuntu: php composer.phar require solarium/solarium I've also used silex micro framework. After installing solarium, when I tried to run sample php file in examples folder, I got error…
Guru
  • 410
  • 1
  • 7
  • 17
0
votes
1 answer

Error while implementing Solr using solarium

I installed solr using the Bitnami installation in windows. When i ping the server using solarium. If use var_dump($result->getResponse()); then everything works fine but if i use var_dump($result->getdata()); I get a error saying JSON could not be…
pavneet tiwana
  • 216
  • 1
  • 3
  • 17
0
votes
1 answer

How to configure yii2-solr extension

I want to use yii2-solr extension in one of my projects. How can I configure this extension. Nothing is mentioned on the extension page. Has anyone used this extension? Any help would be appreciable. Thank you. I found the extension on github repo…
Chinmay Waghmare
  • 5,368
  • 2
  • 43
  • 68
0
votes
1 answer

Where to put/find schema.xml and other config files in solarium using Yii2?

I'm trying to use Solr through solarium under Yii 2 Framework, after Googling for many hours i still don't know where is the config files. I only have solarium folder under vendor, --- vendor --- solarium --- solarium --- examples …
Tariq Albajjali
  • 327
  • 1
  • 6
  • 16
0
votes
2 answers

How to print complex multidimensional associative array in an table (PHP)

I want to be able to display the multidimensional associative array in a table. The arrays are created by Solarium API which is used for debugging any indexing issues. Each array has different number of arrays and keys. I want it keep it in a way…
Kumaran
  • 3
  • 3
0
votes
1 answer

Design optimal Solr Schema

Hello i have problem with design of schema in Solr. I have a transcript of a telephone conversation in this format. I parse it at individual fields. I have this schema: 01.cn
tomas
  • 153
  • 2
  • 13
0
votes
2 answers

Solr and searching phrases with double quotes

I have an ecommerce site where I am implementing Solr (using the Solarium library) and there are product names and descriptions that contain double quotes (usually standing for inches). Before I started to grasp the analyzer and tokenizer portion of…
phpSteve
  • 41
  • 1
  • 7
0
votes
1 answer

Solr : How to do custom sorting of group results

In Solr , I am fetching results using groupBy on "hash" ( my custom field ) field. As we know each group will contains a set of documents. My requirement is: Solr first do a sorting based on score , that it is already doing. If score of any two…
voila
  • 1,594
  • 2
  • 19
  • 38
0
votes
2 answers

how to delete all the records from solr index

I am using solr to full text search. I am new to solr and trying to delete the records from the solr index by php solarium client I am using the following code to delete the records: include_once("vendor/autoload.php"); $client = new…
john
  • 567
  • 8
  • 23