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
1 answer

Laravel Solr HTTP error: Neither collection nor core set

I tried installing and setting up solarium and laravel using the guides in this link https://petericebear.github.io/laravel-php-solarium-integration-20160725/ and I am getting this error Solr HTTP error: Neither collection nor core set. (404) #0…
Edrisa Turay
  • 542
  • 5
  • 7
0
votes
2 answers

HTTP error issue in suggest query using Solarium php

I'm implement suggest query in php codeigiter using solarium. But while connect to the createSuggester query. It shows following error line. An uncaught Exception was encountered Type: Solarium\Exception\HttpException Message: Solr HTTP error: OK…
user10899318
0
votes
1 answer

Solorium issue - syntax error, unexpected ':', expecting ';' or '{' at line number 309

I'm setting solarium in my codigniter web application. And create test query. It shows A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at…
user10899318
0
votes
1 answer

Do we need to create schemas in the latest Apache Solr? If yes, then how do I make a schema for a Product with attributes?

I have an e-commerce store and the table structure of that is as follows: Products product_id | name price 1 galaxy s9 red 800 2 galaxy s9 blue 850 3 t-shirt 30 Product…
Ask17
  • 72
  • 8
0
votes
2 answers

unexpected docvalues type NONE for field 'location_0_coordinate' (expected one of [BINARY, NUMERIC, SORTED, SORTED_NUMERIC, SORTED_SET])

Recently I started getting this error on solr java.lang.IllegalStateException: unexpected docvalues type NONE for field 'location_0_coordinate' (expected one of [BINARY, NUMERIC, SORTED, SORTED_NUMERIC, SORTED_SET]). Re-index with correct…
Sayantan Das
  • 1,619
  • 4
  • 24
  • 43
0
votes
1 answer

how to create a new solr core in laravel/solarium

I am trying to make multi core Solr server and connect from PHP laravel. I did connect the solr and laravel but i cant find a way to create a core. I am also using solarium lib. Is it possible to create a new core with parameters from php?
Arty
  • 859
  • 2
  • 12
  • 31
0
votes
1 answer

Laravel Solarium how to add csv file to Solr core?

I am trying to make a laravel project. Users can upload a csv file to Solr via Laravel. I am already connect solr and can upload a csv file. But i dont know how to add the csv file to solr's core. Any suggestions, what should i do ?
Arty
  • 859
  • 2
  • 12
  • 31
0
votes
1 answer

SOLR filter query based on condition

I have a group index. A group has two privacy types, public and private. A private group is associated with an access code. In the search result a private group should only be included if user has the access code associated to it. Previously private…
Sayantan Das
  • 1,619
  • 4
  • 24
  • 43
0
votes
1 answer

how i can do the relation on solarium? like what we can do on SQL by using select and where

This is my code. I want to display the author name with his book. I had uploaded two files to Solr (book, author) and there is column share between the two file (authid on another file and oAuth on book file). I don't know how can do this process…
0
votes
1 answer

Solr Solaruim Client->ping is failing

I am new to this stuff. I just inherited this olde system! I managed to get Solr running, and am trying to execute some old code that rebuilds the Solr data. The client ping is failing and I don't understand why. Here is the code that is trying…
Addinall
  • 343
  • 2
  • 12
0
votes
0 answers

Symfony with NelmioSolariumBundle - how to log http 500 errors

how can I configure or what to do if I want to log using Nelmiosolariumbundle under Symfony when I get e.g. http 500 Error. I have in prod.log message of error. But there is missing query to SOLR - so I can't configure what was requested and how to…
0
votes
1 answer

Solr Solarium and Curl throwing an error

I recently installed Solarium (with Java 8 on Ubuntu 14.04, PHP 5.5). I created a core called test : $ sudo -u solr /opt/solr-6.5.1/bin/solr create -c test Then I indexed in it the "techproducts" example : $ bin/post -c test…
0
votes
1 answer

Disjunction in FilderQuery with Solarium

Ive currently stumbled over a strange behavior from Solr while using PHP/Solarium. I construct a query for a filterQuery and built it up like this: $select = array( 'query' => $this->getSearchTermForQuery(), 'fields' =>…
LongRon
  • 73
  • 1
  • 9
0
votes
1 answer

Inject dependencies into a custom solarium document

I'm using NelmioSolariumBundle in a symfony project to integrate solarium. My controller $query = $this->client->createSelect(array( 'documentclass' => 'MY\SolariumDocument' )); In my custom documentclass, I have a field that store a reference…
smarber
  • 4,829
  • 7
  • 37
  • 78
0
votes
1 answer

Solr boosting search score with matching fields

I have a group index. A group has an interest (purpose for the group, it can be 'Study Group', or 'Wine Tasting') and the location where it is being organized (the lat, lon values). User also have interests (multiple). So when a user searches groups…
Sayantan Das
  • 1,619
  • 4
  • 24
  • 43