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

Solr Group By query

I have schema.xml like this: Sample data id Country State City Area 1 India abc cd mnv 15131 India Delhi HauzK asdf (from 1 to 15131 inserted usingcsvhandler) 15132 …
voila
  • 1,594
  • 2
  • 19
  • 38
0
votes
1 answer

Class not found when trying to index documents using Solr with Symfony2

I am very new to Solr and I am probably missing something simple however, having followed Xavier Briand's presentation I have set up Symfony2, Solarium and Nelmio\SolariumBundle. "nelmio/solarium-bundle": "2.0.*@dev", "solarium/solarium":…
Scott Sherwood
  • 3,108
  • 25
  • 30
0
votes
1 answer

Lucene find index in multivalued field?

I have a multivalued field of names and I have to find the index of the matching value in the list. DOC example: profile_id: 1 names: [ "My name", "something", "My second name", "My nickname"] query: profile_id:1 AND names:"My secon…
M4rk
  • 2,172
  • 5
  • 36
  • 70
0
votes
1 answer

Solr HTTP Error 'Unknown Field' Error using Solarium

I am trying to index a table from MySQL with Solarium and PHP. In order to test, I have a list of countries and have set up a core in Solr to reflect the fields I am retrieving in the query. I am getting an error when trying to add these using…
Drew
  • 2,601
  • 6
  • 42
  • 65
1 2 3
10
11