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

Integrating Solarium in Zend Framework 1.12.3

Is there a method (easy or difficult, i don't care) to include Solarium in zend framework. What i want is that i can use solarium everywhere in my application without causing any problems. Thank you all.
Lotfi
  • 136
  • 1
  • 6
1
vote
1 answer

How to store value of a filed into a variable in Solarium?

I want to get my value of the field ‘Latitude’ and ‘Longitude’ into a variable in order to pass it as an argument in below function: // add a filterquery to find products in a range of 25km, using the helper to generate the 'geofilt'…
sohan
  • 17
  • 5
1
vote
1 answer

Solr Query Max Condition

I am using solr 4.3.0 for my web site search. I want to do something using solr but when I query, I get an error. In my situation I have 40000 products, and I want to excludes 1500 products with query. This is the my query -brand-slug:reebok OR…
1
vote
1 answer

Need solr to skip very common words

I am using solr in my application and want it to ignore some of trivial search queries like "a", "an", "the" etc. I want it to return nothing if it encounters such query strings. Is there anything like dictionary or knowledge base that I can…
Samiron
  • 5,169
  • 2
  • 28
  • 55
1
vote
1 answer

how to get excerpt from solr in solarium

How can I use Highlighening text and getting the excerpt( the sentences along with matched words ) using solr , and i am suing solarium ? can it be done using solarium, i dont have any idea about this , kindly help
user2528042
  • 419
  • 2
  • 6
  • 12
1
vote
1 answer

curl http handler for solarium solr error

I am trying to use solarium to run php code which uses solr for indexing data , I have done on my system , and its working fine , But when I run on my collegue's system i get the following error Fatal error: Uncaught exception…
Varsha
  • 11
  • 1
  • 2
1
vote
2 answers

how do I a delete with a query and filter in solr 4 (w/ solarium)

I'm using Solarium with Solr 4 and I need to delete with multiple criteria. The docs show how to delete with a query $client = new Solarium\Client($config); $update =…
Yehosef
  • 17,987
  • 7
  • 35
  • 56
1
vote
1 answer

Solarium filter query with OR

I want to create a filter query with Solarium, using a lot of ORs. The sql equivalent would be select * from myTable where myValue in (1,3,5,6,9); The string that I have created for my filter query is this: spr:1 OR spr:3 OR spr:5 OR spr:6 OR…
midnig
  • 183
  • 5
  • 16
1
vote
1 answer

File include in Yii

I am trying to extend my yii application with solarium extension (extension for solr in php) . However , the library for the extension had multiple sub directories . As a result I have to include files from specific sub directories like this…
Varun Jain
  • 1,901
  • 7
  • 33
  • 66
1
vote
1 answer

php composer with solarium library

How am I supposed to use the Solarium Library https://packagist.org/packages/solarium/solarium With PHP Composer? http://getcomposer.org/ I ran composer require solarium/solarium It installed properly then I added to my php file include_once…
user391986
  • 29,536
  • 39
  • 126
  • 205
1
vote
1 answer

The location of the file containing the searched word (Solr with ExtractingRequestHandler)

I'm just starting Solr and using the ExtractingRequestHandler to index PDF files using the curl command: curl "http://localhost:8983/solr/update/extract?literal.id=doc1&commit=true" -F "myfile=@file.pdf" I used Solarium as a Solr client to query…
Nadjib Mami
  • 5,736
  • 9
  • 37
  • 49
1
vote
1 answer

Solr HTTP error: Not Found (404) using Solarium

I am using Solarium to access Solr from PHP. When I perform a normal select query using Solarium everything works fine. Problem: When I attempt to do a MoreLikeThis query, I get the following error when trying to execute the query. What went wrong,…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
1
vote
3 answers

Convert unfamiliar data format to array/object/JSON

I am using a library (Solarium for Solr), and the results returned by it is in a format that I am not familiar with. The chunk of code below shows the output of print_r($resultset) on the results $resultset returned by the library's function. I…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
0
votes
2 answers

How to search two different things in two different fields?

I am using NUTCH 1.4 and SOLR 3.3.0 to crawl and index my website. On the front-end I use the php API SOLARIUM to query to SOLR. I have the following fields that I search in by default: content -> of type Text title -> of type Text ur-> of type…
breakdown1986
  • 439
  • 1
  • 6
  • 12
0
votes
0 answers

Inconsistent Solr Search Behavior for Customers with Job and Customers Without Job - Partial vs. Whole Word Search Issue

We are facing a puzzling issue with Solr search integration in Laravel, and we could really use some expert guidance to resolve this matter. Our project involves indexing data on Solr using Laravel. Within our indexed data, we have two distinct…