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
2 answers

Ignore special characters

I have the following field within my SOLR configure:
Antony
  • 3,875
  • 30
  • 32
0
votes
1 answer

How to convert a field text to lower case inside solr from solarium setQuery before fetching the result?

i want to search "title" from the data below but before setting query from solarium i want to convert the whole text to lowercase "title" and then retrieve the result. journalIssn:0007-1447 issue: 4680 pageInfo: 671-673 source: PMC title: …
Junaid
  • 1
  • 1
0
votes
2 answers

Solr Searching - Using Query

I have some documents with titles like "Red And Carpet" , "Red and Blue","Blue And Red","Red In White","Blue in Red". I want to perform search against the title for the following keyword "Blue Red".It should return the documents where both Blue and…
Raza Rafaideen
  • 2,119
  • 1
  • 19
  • 30
0
votes
1 answer

How to integrate Solr and CakePhp3 using Solarium or any other clients?

I've developed an application on cakephp 3 which has a approximately 10 million rows in its database and expected to grow gradually. With MySQL search, it was too slow therefore I've implemented Solr5 now I'm not getting how do I integrate Solr5…
0
votes
1 answer

Faceted search in solr using solarium with multiple values of the same field

I am indexing my data in solr along with the id related to the community associated with it . For eg these are the blogs i get when i search for a specific query but i want to further filter them based on community Id's:- Blog1- Community id…
pavneet tiwana
  • 216
  • 1
  • 3
  • 17
0
votes
1 answer

solr count group by

I would like to "convert" a SQL query in a solr command. I have 2 SQL tables "jobs" and "companies". Today to count the number of jobs published by a company, I run this query : select c.id, count(j.id) from companies c left join jobs j on…
barden
  • 349
  • 6
  • 18
0
votes
2 answers

Symfony Solarium Data Import

I am using Symfony NelmioSolariumBundle and need to make Solr full data import, has a Solarium such type of command? If no, how to execute custom request for data import through Solarium API: /core/dataimport?command=full-import
Sam Ivichuk
  • 999
  • 1
  • 10
  • 22
0
votes
1 answer

how does php class instantiation of solarium work behind the scene?

So the specifics of my question are about Solarium. I want to know how php can figure out which class you mean without including the specific class file. Why does the line $client = new Solarium\Client($config); create a new client object? How is…
yemista
  • 433
  • 5
  • 15
0
votes
1 answer

How to update the document on solr 6.0?

I am using solr 6.0 version. This is my data { "id" : "14", "solrid" : "solr|school|14", "name" : "test update solr 14", "status" : "pending", "state" : "Andhra Pradesh", "board" : "CISCE", "updated" :…
Dinesh Kumar
  • 353
  • 7
  • 16
0
votes
1 answer

Solarium - Need to update read-only resultset

I'm building an interactive search service for a client, and part of what we need is the ability to add "tags" to documents. These tags will be both pre-existing and custom-defined. The schema has been setup to support this, but I'm having issues…
LinuxGnut
  • 393
  • 8
  • 18
0
votes
2 answers

Solarium query where query does not exactly match field

I am new to Solr 6.0 & Solarium integration. I have the set up running but results are not being returned where fields do not exactly match query. e.g I have a url field containig 'http://ayodeji.com' or 'http://ayo-tuntun.com' but a query for 'ayo'…
Deji Epe
  • 3
  • 1
  • 3
0
votes
1 answer

solr service shut down for no apprent reason

I'm using the solr5.3.1 for full text searching.And I'm using PHP with solarium library to communicate with solr service.It is doing well in most of the time.But it was shut down twice for no reason.I check the log files,and find no error message.So…
Liu Wenzhe
  • 881
  • 2
  • 8
  • 22
0
votes
1 answer

Solarium gets "Permission Denied" when trying to connect apache solr at local ip

I have a drupal 8 site on the same physical server as apache solr (5.2.1). Drupal 8 uses the search_api_solr contrib module, which uses Solarium (installed by composer) to talk to the solr server using the http api. I have successfully installed…
ransomweaver
  • 472
  • 6
  • 19
0
votes
1 answer

SolrException URLDecoder: Invalid character encoding detected after position 79 of query string / form data (while parsing as UTF-8)

HOW I can indexing from solarium rich data(msword and pdf files) from a dirctory who contient many files, MY config is $config = array( "endpoint" => array("localhost" => array("host"=>"127.0.0.1", "port"=>"8983", "path"=>"/solr",…
MedKostali
  • 223
  • 1
  • 5
  • 16
0
votes
1 answer

Unable to index docs using bufferedadd plugin in solarium

I am using solarium to implement a solr search. I need to index my files into solr. I am using the following code to do so. require('init.php'); use Solarium\Plugin\BufferedAdd\Event\Events; use Solarium\Plugin\BufferedAdd\Event\PreFlush as…
pavneet tiwana
  • 216
  • 1
  • 3
  • 17