Questions tagged [solr]

Apache Solr is an open source search server based on the Lucene Java search library.

Apache Solr is an open source search server based on the search library.

Its major features include powerful full-text search, hit highlighting, faceted search, dynamic clustering, database integration, and rich document (e.g. , ) handling. Solr is highly scalable, providing distributed search and index replication, and it powers the search and navigation features of many of the world's largest internet sites.

Solr uses the Lucene Java search library at its core for full-text indexing and search and has REST-like HTTP/XML and APIs that make it easy to use from virtually any programming language. Solr's powerful external configuration allows it to be tailored to almost any type of application without Java coding, and it has an extensive plugin architecture when more advanced customization is required.

Solr can be accessed via HTTP or via numerous client libraries, such as

References:

See also

20557 questions
4
votes
1 answer

Testing a Solr distributed component

I have developed a custom Solr search component for which I need to write unit tests. As I have seen in the code of other Solr components, writing unit tests in Solr is done by extending the SolrTestCaseJ4 class. Unfortunately, SolrTestCaseJ4…
snakile
  • 52,936
  • 62
  • 169
  • 241
4
votes
1 answer

SolrJ - Asynchronously indexing documents with ContentStreamUpdateRequest

I am using SolrJ API 4.8 to index rich documents to solr. But I want to index these documents asynchronously. The function that I made sends documents synchronously but I don't know how to change it to make it asynchronously. Any idea? Function:…
tech4
  • 541
  • 2
  • 14
  • 37
4
votes
0 answers

Solr Custom Similarity Class loaded but no effect on ranking result. Why is override not working?

My custom similarity class PercentageSimilarityClass has been added to the classloader, but the results are ranked the same as before. This is my code. What am I doing wrong? package org.apache.lucene.search.similarities; import…
AnonyMouse
  • 432
  • 8
  • 24
4
votes
1 answer

Solr total term frequency for multiple terms

I'm using the following query to get the total number of times the word "apple" appears in the "text" field: /solr/collection1/select/?q=text:apple&fl=totaltermfreq(text,apple)&rows=0&omitHeader=true
Naijaba
  • 1,019
  • 1
  • 13
  • 24
4
votes
0 answers

Rails sunspot reindex - progress bar: Max must be a positive integer

I am trying use sunpost and I am failing during rake sunspot:reindex with this error: Error using progress bar: Max must be a positive integer This error occurs even if database is empty. I am using this: - ruby-1.9.3-p448 - rails-3.2.18 -…
Vosa
  • 41
  • 2
4
votes
1 answer

How to token a word which combined by two words without whitespace

I have a word like lovelive, which is combined by two simple words love and live without whitespace. I wanna know which kind of Lucene Analyzer can token this kind of words into two separate words?
Cao Dongping
  • 969
  • 1
  • 12
  • 29
4
votes
2 answers

Defining nested entities in Solr Data Import Handler

Let me preface by mentioning that I've been through everything I could find about this topic including the Solr docs and all of the SO questions. I have a Solr instance that I've setup with a Data Import Hanlder to pull in data from MSSQL using the…
Dustin Davis
  • 14,482
  • 13
  • 63
  • 119
4
votes
2 answers

Multi-value spatial search with Sunspot Solr

At the moment I am indexing my providers using Sunspot Solr based on their latitude and longitude. class Provider < ActiveRecord::Base searchable do text :full_name, :as => :full_name_textp latlon(:location) {…
Abram
  • 39,950
  • 26
  • 134
  • 184
4
votes
1 answer

Indexing custom entity in Magento with Solr

I'm trying to index a custom entity in Solr with Magento. I've followed this guide: http://www.summasolutions.net/blogposts/magento-apache-solr-integration-part-iii-indexing-custom-data, but I still can't make it work. In my case I have an EAV…
unveloper
  • 260
  • 1
  • 4
  • 12
4
votes
3 answers

Solr join "not in" subselect

In the Solr join documentation Solr Join they say that: /solr/collection1/select ? fl=xxx,yyy & q={!join from=inner_id to=outer_id}zzz:vvv is equivalent to: SELECT xxx, yyy FROM collection1 WHERE outer_id IN (SELECT inner_id FROM collection1…
Avner Levy
  • 6,601
  • 9
  • 53
  • 92
4
votes
1 answer

Checking SOLR indexing progress

I have started a SOLR re-index procedure on a huge Alfresco repository. However the process gets stuck sometimes and I would like to know on which file did it stop. I can't see it in the logs (INFO logging level) or on the SOLR status page. My…
Thurs
  • 186
  • 1
  • 7
4
votes
1 answer

Solr-solrj 4.9.0 run on jdk 1.6?

Can Solr 4.9.0 solr-solrj API run in Java 1.6? (It seems to be compiled into Java 1.7) I'm using solr server 4.9.0 and It needs Java 1.7 but I want use the client into my project and it's compiled on Java 1.6
Ignasi
  • 5,887
  • 7
  • 45
  • 81
4
votes
2 answers

Solr PDF search: "Go to page" function

We're building a PDF search machine with Solr and Lucene where users can search for text in PDFs. The database only contains PDFs. In the search results page ("/browse") we want to append the PDF file with #page=X where X is the page the text was…
Simon Fredsted
  • 964
  • 2
  • 14
  • 26
4
votes
3 answers

Add document to Apache Solr via PHP cURL

I don't know what I have done wrong. The record does not get added. Here is my code: $ch = curl_init("http://127.0.0.1:8983/solr/collection1/update/json?commit=true"); $data = array( "add" => array( "doc" => array( "id" => "HW132", …
invisal
  • 11,075
  • 4
  • 33
  • 54
4
votes
1 answer

solr facets vs mysql relation schema

I am interested to find out what is the best/fastest (most efficient) way to query solr in a solr/mysql/app set up. I have a mysql DB that has one large main table and several smaller tables in a relational schema. I am also building an app which…
Ke.
  • 2,484
  • 8
  • 40
  • 78
1 2 3
99
100