MCPcopy Index your code
hub / github.com/apache/solr

github.com/apache/solr @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
48,019 symbols 276,536 edges 4,649 files 9,447 documented · 20% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Welcome to the Apache Solr project!


Solr is the blazing-fast, open source, multi-modal search platform built on Apache Lucene. It powers full-text, vector, and geospatial search at many of the world's largest organizations.

Build Status Build Status

For a complete description of the Solr project, team composition, source code repositories, and other details, please see the Solr web site at https://solr.apache.org/

Download

Downloads for Apache Solr distributions are available at https://solr.apache.org/downloads.html.

Running Solr

Installing Solr

The Reference Guide contains an entire Deployment Guide to walk you through installing Solr.

Running Solr in Docker

You can run Solr in Docker via the official image. Learn more about Solr in Docker

Running Solr on Kubernetes

Solr has official support for running on Kubernetes, in the official Docker image. Please refer to the Solr Operator home for details, tutorials and instructions.

How to Use

Solr includes a few examples to help you get started. To run a specific example, enter:

  bin/solr start -e <EXAMPLE> where <EXAMPLE> is one of:
    cloud:         SolrCloud example
    techproducts:  Comprehensive example illustrating many of Solr's core capabilities
    schemaless:    Schema-less example (schema is inferred from data during indexing)
    films:         Example of starting with _default configset and adding explicit fields dynamically    

For instance, if you want to run the techproducts example, enter:

  bin/solr start -e techproducts

For a more in-depth introduction, please check out the tutorials in the Solr Reference Guide.

Support

Developer Documentation

Learn more about developing Solr by reading through the developer docs in ./dev-docs source tree or building Solr from source in ./dev-docs/solr-source-code.adoc

Quickstart

Solr uses Gradle for its build system. Here are some useful hints to build and run Solr locally:

  • To build a Solr dev distribution:
./gradlew dev
  • To run the Solr dev distribution locally:
cd ./solr/packaging/build/dev
bin/solr start
  • Open a web browser and go to http://localhost:8983/solr/ to access the Solr Admin interface. You can also use the bin/solr script to create and manage Solr collections. For example use the bin/solr post tool to index some sample data.

Get Involved

Please review CONTRIBUTING.md for information on contributing to the project.

To get involved in the developer community:

Extension points exported contracts — how you extend this code

FlValidator (Interface)
Abstraction for diff types of things that can be added to an 'fl' param that can validate the results are correct compar [10 …
solr/core/src/test/org/apache/solr/cloud/TestRandomFlRTGCloud.java
CollectionStateWatcher (Interface)
Callback registered with ZkStateReader#registerCollectionStateWatcher(String, CollectionStateWatcher) and called [9 implementers]
solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/CollectionStateWatcher.java
Writable (Interface)
Implement this interface on your class to support serialization [102 implementers]
solr/solrj/src/java/org/noggit/JSONWriter.java
CreateCollectionApi (Interface)
V2 API definition for creating a SolrCloud collection [33 implementers]
solr/api/src/java/org/apache/solr/client/api/endpoint/CreateCollectionApi.java
StreamOperation (Interface)
Interface for any operation one can perform on a tuple in a TupleStream [14 implementers]
solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/ops/StreamOperation.java
ExtractionPasswordProvider (Interface)
Generic password provider without Tika dependency [5 implementers]
solr/modules/extraction/src/java/org/apache/solr/handler/extraction/ExtractionPasswordProvider.java
SolrBackend (Interface)
Abstraction over a running Solr deployment for use in tests and benchmarks. The abstraction normalizes how to shut down [4 …
solr/test-framework/src/java/org/apache/solr/SolrBackend.java
SolrRandomnessSource (Interface)
The interface Solr randomness source. [4 implementers]
solr/benchmark/src/java/org/apache/solr/bench/SolrRandomnessSource.java

Core symbols most depended-on inside this repo

get
called by 8881
solr/core/src/java/org/apache/solr/search/SolrCache.java
add
called by 8507
solr/solrj/src/java/org/apache/solr/common/IteratorWriter.java
toString
called by 4969
solr/core/src/java/org/apache/solr/uninverting/FieldCache.java
put
called by 3960
solr/core/src/java/org/apache/solr/search/SolrCache.java
get
called by 3887
solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/SolrZkClient.java
size
called by 3694
solr/core/src/java/org/apache/solr/search/DocList.java
of
called by 2510
solr/core/src/java/org/apache/solr/metrics/SolrMetricInfo.java
append
called by 2339
solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/comp/StreamComparator.java

Shape

Method 40,072
Class 5,933
Function 1,365
Interface 496
Enum 153

Languages

Java96%
TypeScript2%
Kotlin1%
Python1%

Modules by API surface

solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionAdminRequest.java456 symbols
solr/webapp/web/libs/d3.js370 symbols
solr/webapp/web/libs/angular.min.js285 symbols
solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java233 symbols
solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/sql/DatabaseMetaDataImpl.java177 symbols
solr/core/src/test/org/apache/solr/schema/TestPointFields.java170 symbols
dev-tools/scripts/releaseWizard.py165 symbols
solr/core/src/java/org/apache/solr/core/SolrCore.java155 symbols
solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java149 symbols
solr/solrj-streaming/src/test/org/apache/solr/client/solrj/io/stream/MathExpressionTest.java149 symbols
solr/solrj/src/java/org/apache/solr/client/solrj/request/SolrQuery.java140 symbols
solr/core/src/java/org/apache/solr/schema/IndexSchema.java138 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add solr \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact