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
28
votes
2 answers

Which special characters need escaping in a solr query?

Update: I think this question has to do with solr syntax in general, and not Chef in particular. So while I ran into this working with Chef, I presume that anyone working with Solr will also experience this... I'm working on an application that…
hairyhenderson
  • 577
  • 1
  • 7
  • 20
28
votes
2 answers

How to create a case insensitive copy of a string field in SOLR?

How can I create a copy of a string field in case insensitive form? I want to use the typical "string" type and a case insensitive type. The types are defined like so:
harschware
  • 13,006
  • 17
  • 55
  • 87
27
votes
1 answer

SOLR exact match boost over text containing the exact match

I could not find a better title, I hope to change it later if possible upon your eventual sugestions. My problem: I got a database with music artists. These look like this: "dr. dre feat. akon", "eminem & dr. dre", "dr. dre feat. ll cool j", "dr.…
BogdanM
  • 625
  • 1
  • 6
  • 10
27
votes
7 answers

Solr delete not working for some reason

Just trying to delete all the documents, and did this: http://localhost:8983/solr/update?stream.body=%3Cdelete%3E%3Cquery%3E*:*%3C/query%3E%3C/delete%3E then committed: http://localhost:8983/solr/update?stream.body=%3Ccommit/%3E I get the…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
27
votes
2 answers

solrj api for partial document update

Solr 4 beta is out, the GA version will follow soon. Partial document updates has been around for a while as explained here: http://solr.pl/en/2012/07/09/solr-4-0-partial-documents-update/ However, I haven't figured out how to do it with solrj…
Yoni
  • 10,171
  • 9
  • 55
  • 72
26
votes
4 answers

Faceted Search (solr) vs Good old filtering via PHP?

I am planning on setting up a filter system (refine your search) in my ecommerce stores. You can see an example here: http://www.bettymills.com/shop/product/find/Air+and+HVAC+Filters Platforms such as PrestaShop, OpenCart and Magento have what's…
Adil
  • 3,183
  • 5
  • 28
  • 30
26
votes
11 answers

Solr DataImportHandler not found

I am using Solr 3.3.0 with Tomcat 6.0.26. I was able to successfully install Solr and i was even able to access its web interface using http:/localhost:8084/solr/admin. Now i want to use its dataimporthandler to index data from my database.I have…
Prim
  • 1,312
  • 5
  • 25
  • 51
26
votes
3 answers

What are docValues in Solr? When should I use them?

So, I have read multiple sources that try to explain what 'docValues' are in Solr, but I don't seem to understand when I should use them, especially in relation to indexed vs stored fields. Can anyone please throw some light on it?
gravetii
  • 9,273
  • 9
  • 56
  • 75
26
votes
6 answers

Solr: how to turn down logging

OK, so I'm thrilled with Solr, but I can't seem to figure out how to turn down the logging level so that it will actually run acceptably fast when I do a huge import run. I'm not even sure which logging framework it's using (because, you know,…
George Armhold
  • 30,824
  • 50
  • 153
  • 232
26
votes
3 answers

How to use SOLR copyField directive

I have a rather simple SOLR structure, that hold three different fields: id, text and tags in the schema.xml I set the following id text
harpax
  • 5,986
  • 5
  • 35
  • 49
26
votes
3 answers

Solr: Retrieve field names from a solr index?

How can I query a Solr instance for all (or prefixed) field names? I want to use dynamic fields where I do not know how many may exist e.g: category_0_s, category_1_s etc. Preferably I'd like to use a prefix e.g. category_
floplus
  • 315
  • 1
  • 3
  • 7
26
votes
7 answers

Full text search options for MongoDB setup

We are planning to store millions of documents in MongoDB and full text search is very much required. I read Elasticsearch and Solr are the best available solutions for full text search. Is Elastic search is mature enough to be used for Mongodb…
atandon
  • 557
  • 3
  • 10
  • 19
25
votes
3 answers

solr suggester not returning any results

I've followed the solr wiki article for suggester almost to the T here: http://wiki.apache.org/solr/Suggester. I have the following xml in my solrconfig.xml:
Marquis
  • 531
  • 1
  • 4
  • 13
25
votes
4 answers

Solr Partial And Full String Match

I am trying to allow searches on partial strings in Solr so if someone searched for "ppopota" they'd get the same result as if they searched for "hippopotamus." I read the documentation up and down and feel like I have exhausted my options. So far I…
Scripthead
  • 271
  • 1
  • 3
  • 4
25
votes
8 answers

Caused by: org.apache.solr.common.SolrException: Index locked for write for core

We are using solr4.3 with master/slave setup, today I got the following error and solr stopped responding. What could be causing this, Caused by: org.apache.solr.common.SolrException: Index locked for write for core XXX at…
Cool Techie
  • 756
  • 2
  • 18
  • 39