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

Solr French Language Schema

Can anyone please share the best solr schema for French language data? I have already implemented this for my current project, but it does not give proper data for french text. My schema.xml:
Ajay Patel
  • 791
  • 11
  • 24
0
votes
1 answer

Doing complex multi-table search queries using Solr

I just started learning Solr and the reason I learned it is because I want to do advance search queries (something considered simple in SQL) but on large amount of data. From what I read up to now (using solarium) I can index, update, select and…
Paiku Han
  • 581
  • 2
  • 16
  • 38
0
votes
0 answers

Solr makes index but solarium doesn't index more than 9 documents

I am working on Ubuntu. I want to use Solarium to index documents in Solr. When I try to index documents via Solarium it indexes at most 9 documents at a time, so I can't add new documents, but when I try to index new documents from shell it works…
0
votes
1 answer

Solr with duplicate unique keys ?? Where am I wrong

How it could be possible solr can have duplicate unique keys ? When i tried something to update with given rId , instead of updating it create new doc Here is the schema.xml -->
voila
  • 1,594
  • 2
  • 19
  • 38
0
votes
1 answer

Solr highlighting directly on text

I use Solarim for Solr. I want to seach in my documents after a certain expresion and highlight the words. Here is my code: // get a select query instance $query = $client->createSelect(); $query->setQuery('*ac*'); $hl =…
Andreea
  • 139
  • 12
0
votes
1 answer

Complex query for searching in solr

We are storing data for product entity in below format in solr search engine. { id:unique_id, ... ... ... price_per_quant: [ "1-50|1",/* here price per quantity is save in key value pari e.g for quantity 1 to 50 price should be 1*/ …
Ajay Patel
  • 791
  • 11
  • 24
0
votes
1 answer

Are PECL & solarium mandatorily required to run solr on php?

Well i have tried finding documents on starting solr with php but couldn't any proper startup guide for beginners. Some places it just mentions solr client libraries, some mention pecl and some mention solarium too. Are all the three required? And…
abhilashLenka
  • 101
  • 1
  • 12
0
votes
3 answers

Exact word match Solr

I want to the exact results for my query. For e.g. when I search "New york" , then it doesn't give me exact results about New York But it also gives me results like: "New York" "New Delhi" And other cities starting from "New" So how can I get only…
sohan
  • 17
  • 5
0
votes
1 answer

Search specific keyword and give results nearer to our current location

I am working on a website allevents.in(Basically it is an event discovery and event promotion platform) , in this website I want to apply solr search. And I am using Solarium as a php-client. Now when you will go to the website I am working on quick…
sohan
  • 17
  • 5
0
votes
2 answers

Getting back ALL results using Solarium-PHP

Solarium (and solr) default to returning 10 results if a limit is not specified. I know that I can specify a limit using $query->setRows(25); but I need to return all results (no matter how large). Is there a way to specify this without passing in…
4shcr4ft
  • 5
  • 2
0
votes
0 answers

How to handle pagination with KnpPaginator and Solarium?

I'm trying to paginate with Symfony2, KnpPaginator and Solarium. There is no error returned nor pagination shown. {{ pagination.getTotalItemCount }} return "2", instead of much more. Actually, it count the number of argument in…
Quentin
  • 631
  • 6
  • 16
0
votes
1 answer

Solr spell check phrases

I'm trying to find a way to have two sets of spell checks. One which handles spellchecking queries for common words found in the documents. And the other which handles spellchecking the query for items like author names, which can be multiple words…
Jess
  • 8,628
  • 6
  • 49
  • 67
0
votes
1 answer

How to Include or Autoload Class Files in Solarium for SOLR

I'm Trying to include or autoload Solarium for SOLR in PHP and I keep getting errors. I know I'm doing it incorrectly but I'm new to autoloading. I have the extension installed for php and that works. Here is the error I receive: Fatal error: Class…
stwhite
  • 3,156
  • 4
  • 37
  • 70
0
votes
1 answer

search key, in all fields mentioned in xml

I am new to solarium and i am using version 2. I have created the schema, and i need to know on how to pass the search key which should search in all fields OR few fields as per the xml. Ex : my fields as something like this. "title",…
sandy
  • 1,126
  • 1
  • 7
  • 17
0
votes
1 answer

Solarium not extract PDF content

Today I am using extract first time. Solarium extracts metadata from a PDF document and inserted into the index, but does not save the content. I used the example 2.7 Extract query (from Solarium examples) and replaced it index.html with myfile.pdf…
1 2 3
10
11