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

19748 questions
745
votes
12 answers

Solr vs. ElasticSearch

What are the core architectural differences between these technologies? Also, what use cases are generally more appropriate for each?
Ben ODay
  • 19,926
  • 7
  • 41
  • 67
440
votes
9 answers

ElasticSearch, Sphinx, Lucene, Solr, Xapian. Which fits for which usage?

I'm currently looking at other search methods rather than having a huge SQL query. I saw elasticsearch recently and played with whoosh (a Python implementation of a search engine). Can you give reasons for your choice(s)?
dzen
  • 6,771
  • 5
  • 24
  • 31
282
votes
10 answers

NoSQL (MongoDB) vs Lucene (or Solr) as your database

With the NoSQL movement growing based on document-based databases, I've looked at MongoDB lately. I have noticed a striking similarity with how to treat items as "Documents", just like Lucene does (and users of Solr). So, the question: Why would…
eduncan911
  • 16,051
  • 11
  • 61
  • 99
192
votes
5 answers

Choosing a stand-alone full-text search server: Sphinx or SOLR?

I'm looking for a stand-alone full-text search server with the following properties: Must operate as a stand-alone server that can serve search requests from multiple clients Must be able to do "bulk indexing" by indexing the result of an SQL…
knorv
  • 45,461
  • 71
  • 205
  • 289
171
votes
7 answers

Difference between solr and lucene

I know that Lucene and Solr are 2 differents Apache projects that are made to work together, but I don't understand what is the aim of each project. For what I understood until now is that Lucene is used to create a search index and Solr use this…
darkheir
  • 8,317
  • 6
  • 43
  • 64
116
votes
7 answers

How to query SOLR for empty fields?

I have a large solr index, and I have noticed some fields are not updated correctly (the index is dynamic). This has resulted in some fields having an empty "id" field. I have tried these queries, but they didn't work: id:'' id:NULL id:null …
user188962
104
votes
18 answers

How to delete all data from solr and hbase

How do I delete all data from solr by command? We are using solr with lily and hbase. How can I delete data from both hbase and solr? http://lucene.apache.org/solr/4_10_0/tutorial.html#Deleting+Data
XMen
  • 25,629
  • 39
  • 95
  • 148
84
votes
7 answers

using OR and NOT in solr query

I'm working on a solr query similar to the following: ((myField:superneat AND myOtherField:somethingElse) OR NOT myField:superneat) When running this, no results are returned. Using criteria on either side of the OR NOT returns results that I'd…
stolenricecakes
  • 943
  • 1
  • 7
  • 7
76
votes
3 answers

What is the use of "multiValued" field type in Solr?

I'm new to Apache Solr. Even after reading the documentation part, I'm finding it difficult to clearly understand the functionality and use of the multiValued field type property. What internally Solr does/treats/handles a field that is marked as …
Gnanam
  • 9,553
  • 18
  • 48
  • 71
74
votes
5 answers

Solr index vs stored

I am a little confused as to what the behaviour of the index and stored attibutes of the Solr fields is. For example if I have the following in the Schema.xml
user1965449
  • 2,641
  • 5
  • 30
  • 47
67
votes
7 answers

How do I find out version of currently running Solr?

Please tell me how can I determine the version number of currently running solr ?
kshama
  • 1,577
  • 3
  • 17
  • 21
67
votes
6 answers

Any reason not use PostgreSQL's built-in full text search on Heroku?

I'm preparing to deploy a Rails app on Heroku that requires full text search. Up to now I've been running it on a VPS using MySQL with Sphinx. However, if I want to use Sphinx or Solr on Heroku, I'd need to pay for an add-on. I notice that…
Ethan
  • 52,651
  • 60
  • 180
  • 231
66
votes
5 answers

Why is Solr so much faster than Postgres?

I recently switched from Postgres to Solr and saw a ~50x speed up in our queries. The queries we run involve multiple ranges, and our data is vehicle listings. For example: "Find all vehicles with mileage < 50,000, $5,000 < price < $10,000,…
cberner
  • 2,758
  • 3
  • 19
  • 33
65
votes
6 answers

Why are document stores like Lucene / Solr not included in NoSQL conversations?

All of us have come across the recent hype of no-SQL solutions lately. MongoDB, CouchDB, BigTable, Cassandra, and others have been listed as no-SQL options. Here's an…
Jon Davis
  • 6,132
  • 5
  • 38
  • 58
65
votes
4 answers

Solr commit and optimize questions

I have a classifieds website. Users may put ads, edit ads, view ads etc. Whenever a user puts an ad, I am adding a document to Solr. I don't know, however, when to commit it. Commit slows things down from what I have read. How should I do it?…
user188962
1
2 3
99 100