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
20
votes
3 answers

Solr - LockObtainFailedException on multiple simultaneous writes

My application does very frequent solr writes from multiple clients via REST. I'm using the autocommit feature by using the "commitWithin" attribute. LockObtainFailedException start appearing after couple of days of use. I'm having a hard time…
Nands
  • 1,541
  • 2
  • 20
  • 33
20
votes
2 answers

What is the difference between managed-schema and schema.xml

I have below questions in solr 6. What is the main difference between managed-schema and schema.xml What are the benefits and disadvantages while using managed-schema and schema.xml(classic). And could you please help me in understanding what is…
Shafs Jan
  • 400
  • 1
  • 3
  • 13
20
votes
3 answers

Using schema.xml instead of managed schema with Solr 5.1.X

I am trying to use schema.xml with the latest version of Solr (5.1.0). It seems that by default Solr 5.1.0 uses managed schema, but I would like to use schema.xml for a specific collection. So I create a new collection (using solr create -c…
chris544
  • 889
  • 2
  • 10
  • 21
20
votes
0 answers

How to properly index Sitecore 7 content in Solr with partial language fallback?

I have a Sitecore 7.5 site that uses Solr 4.7 as the search engine. It works great. This is a multi-language site. I am also using the Partial Language Fallback module written by Alex Shyba. I have adapted it to work with Sitecore 7.5 and it…
Corey Burnett
  • 7,312
  • 10
  • 56
  • 93
20
votes
7 answers

How to create new core in Solr 5?

Currently we are using Apache Solr 4.10.3 OR Heliosearch Distribution for Solr [HDS] as a search engine to index our data. Now after that, I got the news about Apache Solr 5.0.0 release in last month. I'd successfully installed Apache Solr 5.0.0…
immayankmodi
  • 8,210
  • 9
  • 38
  • 55
20
votes
2 answers

Solr Text field and String field - different search behaviour

I am working on Solr 4+. I have several fields into my solr schema with different solr field types. Does the search on text field and string field differs? Because I am trying to search on string field (which is a copy field of few facet fields)…
Ankita
  • 1,416
  • 4
  • 17
  • 42
20
votes
1 answer

Solr 'Invalid Date String' Exception

I'm new to Solr. I successfully indexed some data, but after passing a date attribute to an appropriate solr field I'm receiving an exception: I'm passing the String "15.06.2011 13:51:41", which is a common date format for countries like Germany.…
Benjamin Brandmeier
  • 724
  • 1
  • 9
  • 19
20
votes
2 answers

How to sort by date in SOLR?

I want to sort the results and scores returning from SOLR search,how I can get scores based on date like below: Suppose for keywords "football" 12-10-2012 - 3.2 13-10-2012 - 1.5 My solr date filed lis like below:
user1289853
19
votes
5 answers

Solr localhost:8983 Not Found

I have downloaded Solr 3.5.0. After unzipping I cd into solr\example and then run java -jar start.jar. The following message comes up: Logging to STDERR via org.mortbay.log.StdErrLog jetty-6.1-SNAPSHOT Started SocketConnector@0.0.0.0:8983 If I…
ianckc
  • 1,716
  • 5
  • 18
  • 33
19
votes
3 answers

How can I get a list of all the cores in a solr server using SolrJ

We are using Solr for our searches, and sharding the data across several cores. We have one core per week of data, so we are dynamically creating and deleting cores each week. How can I query a solr server for a list of all its cores? The JavaDoc…
benhsu
  • 5,346
  • 8
  • 39
  • 47
19
votes
6 answers

Flatten nested JSON using jq

I'd like to flatten a nested json object, e.g. {"a":{"b":1}} to {"a.b":1} in order to digest it in solr. I have 11 TB of json files which are both nested and contains dots in field names, meaning not elasticsearch (dots) nor solr (nested without…
assafmo
  • 1,047
  • 3
  • 15
  • 32
18
votes
2 answers

Reindexing a particular model in Sunspot seems to make no difference in time taken

My application usually takes 20 minutes to reindex as a whole. There is a small table with a couple of records which I want to reindex again. I want to save time so I ran the command rake sunspot:solr:reindex[500,Deal]. This is taken straight from…
lulalala
  • 17,572
  • 15
  • 110
  • 169
18
votes
5 answers

SOLR Case Insensitive Search

I've a problem in SOLR Search. I have a data like this: I use solr admin to find this data using query like this: address_s:*Nadi* and found those data. But when I use this query: address_s:*nadi* it doesn't found anything.I've googling and I…
Praditha
  • 1,162
  • 5
  • 24
  • 45
18
votes
6 answers

Indexing PDF with Solr

Can anyone point me to a tutorial. My main experience with Solr is indexing CSV files. But I cannot find any simple instructions/tutorial to tell me what I need to do to index pdfs. I have seen this:…
Mark
  • 2,522
  • 5
  • 36
  • 42
18
votes
1 answer

Limit the amount of results returned by a filter query in Solr

I'm working on a project which uses Solr as its search engine. Is it possible to limit the amount of results returned by a filter query in Solr?
Krt_Malta
  • 9,265
  • 18
  • 53
  • 91