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
66
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,562
  • 5
  • 43
  • 60
66
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
64
votes
5 answers

Retrieving specific fields in a Solr query?

I am running a Solr instance on Jetty and when I search using the Solr admin panel, it returns the entire document. What should I do to get only specified fields from each Solr document returned by the search?
Mohit Ranka
  • 4,193
  • 12
  • 41
  • 41
63
votes
21 answers

Spring Boot app: Not picking up application.properties?

I have a spring boot app I got here: https://github.com/christophstrobl/spring-data-solr-showcase/tree/4b3bbf945b182855003d5ba63a60990972a9de72 It compiles and works fine with: mvn spring-boot:run However, when I click "run as Spring Boot app" in…
jb62
  • 2,224
  • 2
  • 14
  • 23
60
votes
2 answers

Solr filter-query vs main-query

Solr docs state that filter queries, unlike the main query, do not influence the document score. What does this mean exactly, preferably with an example.
mrd3650
  • 1,371
  • 3
  • 16
  • 24
60
votes
6 answers

How to select distinct field values using Solr?

I would like to do the equivalent of this SQL but with Solr as my data store. SELECT DISTINCT txt FROM my_table; What syntax would force Solr to only give me distinct values? http://localhost:8983/solr/select?q=txt:?????&fl=txt EDIT: So…
dacracot
  • 22,002
  • 26
  • 104
  • 152
58
votes
6 answers

Using Solr search index as a database - is this "wrong"?

My team is working with a third party CMS that uses Solr as a search index. I've noticed that it seems like the authors are using Solr as a database of sorts in that each document returned contains two fields: The Solr document ID (basically a…
Michael Moussa
  • 4,207
  • 5
  • 35
  • 53
57
votes
5 answers

my nodejs script is not exiting on its own after successful execution

I have written a script to update my db table after reading data from db tables and solr. I am using asyn.waterfall module. The problem is that the script is not getting exited after successful completion of all operations. I have used db connection…
Vickrant
  • 1,233
  • 2
  • 9
  • 15
57
votes
7 answers

Solr Collection vs Cores

I struggle with understanding the difference between collections and cores. If I understand it correctly, cores are multiple indexes. Collection consists of cores, so essentially they share the same logic in separation, i.e. separate cores and…
NeatNerd
  • 2,305
  • 3
  • 26
  • 49
52
votes
6 answers

Search Engine - Lucene or Solr

We need to integrate a search engine in our Product Catalog management software. the catalog is expected to have more than 4-5 mn. records with relational data spread over several tables. Our dev platform is Asp.Net 3.5 and we have done some…
Vikram
  • 6,865
  • 9
  • 50
  • 61
51
votes
8 answers

How to start Solr automatically?

At the moment I have to go to /usr/java/apache-solr-1.4.0/example and then do: java -jar start.jar How do I get this to start automatically on boot? I'm on a shared Linux server.
bluedaniel
  • 2,079
  • 5
  • 31
  • 49
50
votes
4 answers

Most simple way (URL?) to trigger SOLR commit of all pending docs?

What's the most simple way to cause a SOLR installation to commit all pending docs? (There's no obvious way in the admin interface. There's a script called 'commit' mentioned on the page http://wiki.apache.org/solr/SolrOperationsTools -- but no hint…
gojomo
  • 52,260
  • 14
  • 86
  • 115
46
votes
4 answers

Solr search query over multiple fields

Is it possible to search in Solr over two fields using two different words and get back only those results which contain both of them? For example, if I have fields "type" and "location" , I want only those results who have type='furniture' and…
jay
  • 2,067
  • 2
  • 16
  • 31
45
votes
5 answers

Solr/Solrj: How can I determine the total number of documents in an index?

How can I determine the total number of documents in a Solr index using Solrj? After hours of searching on my own, I actually have an answer (given below); I'm only posting this question so others can find the solution more easily.
George Armhold
  • 30,824
  • 50
  • 153
  • 232
45
votes
6 answers

How to evaluate hosted full text search solutions?

What are the options when it comes to SaaS/hosted full text search? How should I evaluate the different options available? I'm looking for something that uses Lucene, solr, or sphinx on the backend, and provides a REST API for submitting documents…
James Cooper
  • 2,320
  • 2
  • 23
  • 23