CINXE.COM

Solr Tutorials :: Apache Solr Reference Guide

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Solr Tutorials :: Apache Solr Reference Guide</title> <link rel="canonical" href="https://solr.apache.org/guide/solr/latest/getting-started/solr-tutorial.html"> <meta name="generator" content="Antora 3.1.4"> <link rel="stylesheet" href="../../../_/css/site.css"> <script>var uiRootPath = '../../../_'</script> <!-- Solr Changes - Start --> <link rel="icon" href="../../../_/img/favicon.ico" type="image/x-icon"> <!-- Solr Changes - End --> </head> <body class="article"> <header class="header"> <nav class="navbar"> <div class="navbar-brand"> <!-- Solr Changes - Start --> <img class="navbar-item" src="../../../_/img/solr-sunOnly-small.png" width="30" height="30"> <a class="navbar-item" href="https://solr.apache.org/guide">Apache Solr Reference Guide</a> <!-- Solr Changes - End --> <div class="navbar-item search hide-for-print"> <div id="search-field" class="field"> <input id="search-input" type="text" placeholder="Search the docs"> </div> </div> <button class="navbar-burger" data-target="topbar-nav"> <span></span> <span></span> <span></span> </button> </div> <div id="topbar-nav" class="navbar-menu"> <div class="navbar-end"> <!-- Solr Changes - Start --> <a class="navbar-item" href="https://solr.apache.org/" target="_blank" rel="noreferrer nopener">Solr Website</a> <div class="navbar-item has-dropdown is-hoverable"> <a class="navbar-link" href="#">Resources</a> <div class="navbar-dropdown"> <a class="navbar-item" href="https://solr.apache.org/docs/9_7_0/index.html" target="_blank" rel="noreferrer nopener">Solr Javadocs</a> <a class="navbar-item" href="https://solr.apache.org/community.html#version-control" target="_blank" rel="noreferrer nopener">Source Code</a> <a class="navbar-item" href="https://solr.apache.org/community.html" target="_blank" rel="noreferrer nopener">Community Links</a> <a class="navbar-item" href="https://github.com/apache/solr/tree/main/dev-docs/ref-guide" target="_blank" rel="noreferrer nopener">Contribute</a> </div> </div> <div class="navbar-item"> <span class="control"> <a class="button is-primary" href="https://solr.apache.org/downloads.html" target="_blank" rel="noreferrer nopener">Download</a> </span> </div> <!-- Solr Changes - End --> </div> </div> </nav> </header> <div class="body"> <div class="nav-container" data-component="solr" data-version="9_7"> <aside class="nav"> <div class="panels"> <!-- Solr Changes - Start --> <div class="nav-panel-explore" data-panel="explore"> <div class="context"> <span class="title">Solr Reference Guide</span> <span class="version">9.7</span> </div> <!-- Programmatically creates the component and version list --> <ul class="components"> <li class="component is-current"> <a class="title" href="../index.html">Solr Reference Guide</a> <ul class="versions"> <li class="version is-current is-latest"> <a href="../index.html">9.7</a> </li> <li class="version"> <a href="../../9_6/index.html">9.6</a> </li> <li class="version"> <a href="../../9_5/index.html">9.5</a> </li> <li class="version"> <a href="../../9_4/index.html">9.4</a> </li> <li class="version"> <a href="../../9_3/index.html">9.3</a> </li> <li class="version"> <a href="../../9_2/index.html">9.2</a> </li> <li class="version"> <a href="../../9_1/index.html">9.1</a> </li> <li class="version"> <a href="../../9_0/index.html">9.0</a> </li> </ul> </li> </ul> <!-- Solr Additions - Start --> <!-- A hard-coded list of older Ref Guides, pre-Antora --> <ul class="components"> <li class="component"> <a class="title" href="https://solr.apache.org/guide">Pre-9.0 Reference Guides</a> <ul class="versions"> <li class="version"> <a href="https://solr.apache.org/guide/8_11">8.11</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/8_10">8.10</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/8_9">8.9</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/8_8">8.8</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/8_7">8.7</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/8_6">8.6</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/8_5">8.5</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/8_4">8.4</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/8_3">8.3</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/8_2">8.2</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/8_1">8.1</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/8_0">8.0</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/7_7">7.7</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/7_6">7.6</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/7_5">7.5</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/7_4">7.4</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/7_3">7.3</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/7_2">7.2</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/7_1">7.1</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/7_0">7.0</a> </li> <li class="version"> <a href="https://solr.apache.org/guide/6_6">6.6</a> </li> <li class="version"> <a href="http://archive.apache.org/dist/lucene/solr/ref-guide/">Older</a> </li> </ul> </li> <!-- Solr Additions - End --> </ul> </div> <div class="nav-panel-menu is-active" data-panel="menu"> <nav class="nav-menu"> <!-- Solr Removals - Start <h3 class="title"><a href="../index.html">Solr Reference Guide</a></h3> Solr Removals - End --> <ul class="nav-list"> <li class="nav-item" data-depth="0"> <button class="nav-item-toggle"></button> <span class="nav-text">Getting Started</span> <ul class="nav-list"> <li class="nav-item" data-depth="1"> <a class="nav-link" href="introduction.html">Introduction to Solr</a> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <span class="nav-text">Solr Concepts</span> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="documents-fields-schema-design.html">Documents, Fields, and Schema Design</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="solr-indexing.html">Solr Indexing</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="searching-in-solr.html">Searching in Solr</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="relevance.html">Relevance</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="solr-glossary.html">Solr Glossary</a> </li> </ul> </li> <li class="nav-item is-current-page" data-depth="1"> <button class="nav-item-toggle"></button> <a class="nav-link" href="solr-tutorial.html">Solr Tutorials</a> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="tutorial-five-minutes.html">Exercise 0: Five Minutes to Searching!</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="tutorial-techproducts.html">Exercise 1: Index Techproducts Data</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="tutorial-films.html">Exercise 2: Index Films Data</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="tutorial-diy.html">Exercise 3: Index Your Own Data</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="tutorial-paramsets.html">Exercise 4: Using ParamSets</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="tutorial-vectors.html">Exercise 5: Using Vectors</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="tutorial-solrcloud.html">Getting Started with SolrCloud</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="tutorial-aws.html">SolrCloud on AWS EC2</a> </li> </ul> </li> <li class="nav-item" data-depth="1"> <a class="nav-link" href="solr-admin-ui.html">Solr Admin UI</a> </li> <li class="nav-item" data-depth="1"> <a class="nav-link" href="about-this-guide.html">About This Guide</a> </li> </ul> </li> <li class="nav-item" data-depth="0"> <button class="nav-item-toggle"></button> <span class="nav-text">Deployment Guide</span> <ul class="nav-list"> <li class="nav-item" data-depth="1"> <a class="nav-link" href="../deployment-guide/solr-control-script-reference.html">Solr Control Script Reference</a> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <span class="nav-text">Installation &amp; Deployment</span> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/system-requirements.html">System Requirements</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/installing-solr.html">Installing Solr</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/taking-solr-to-production.html">Taking Solr to Production</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/jvm-settings.html">JVM Settings</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/upgrading-a-solr-cluster.html">Upgrading a Solr Cluster</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/backup-restore.html">Backup and Restore</a> </li> <li class="nav-item" data-depth="2"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../deployment-guide/solr-in-docker.html">Solr in Docker</a> <ul class="nav-list"> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../deployment-guide/docker-faq.html">Solr Docker FAQ</a> </li> </ul> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/solr-on-hdfs.html">Solr on HDFS</a> </li> </ul> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <span class="nav-text">Scaling Solr</span> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/cluster-types.html">Solr Cluster Types</a> </li> <li class="nav-item" data-depth="2"> <button class="nav-item-toggle"></button> <span class="nav-text">User-Managed Clusters</span> <ul class="nav-list"> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../deployment-guide/user-managed-index-replication.html">User-Managed Index Replication</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../deployment-guide/user-managed-distributed-search.html">User-Managed Distributed Search</a> </li> </ul> </li> <li class="nav-item" data-depth="2"> <button class="nav-item-toggle"></button> <span class="nav-text">SolrCloud Clusters</span> <ul class="nav-list"> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../deployment-guide/solrcloud-shards-indexing.html">SolrCloud Shards and Indexing</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../deployment-guide/solrcloud-recoveries-and-write-tolerance.html">SolrCloud Recoveries and Write Tolerance</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../deployment-guide/solrcloud-distributed-requests.html">SolrCloud Distributed Requests</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../deployment-guide/node-roles.html">Node Roles</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../deployment-guide/aliases.html">Aliases</a> </li> <li class="nav-item" data-depth="3"> <button class="nav-item-toggle"></button> <span class="nav-text">Collections API</span> <ul class="nav-list"> <li class="nav-item" data-depth="4"> <a class="nav-link" href="../deployment-guide/cluster-node-management.html">Cluster and Node Management Commands</a> </li> <li class="nav-item" data-depth="4"> <a class="nav-link" href="../deployment-guide/collection-management.html">Collection Management Commands</a> </li> <li class="nav-item" data-depth="4"> <a class="nav-link" href="../deployment-guide/shard-management.html">Shard Management Commands</a> </li> <li class="nav-item" data-depth="4"> <a class="nav-link" href="../deployment-guide/replica-management.html">Replica Management Commands</a> </li> <li class="nav-item" data-depth="4"> <a class="nav-link" href="../deployment-guide/alias-management.html">Alias Management</a> </li> </ul> </li> <li class="nav-item" data-depth="3"> <button class="nav-item-toggle"></button> <span class="nav-text">ZooKeeper Configuration</span> <ul class="nav-list"> <li class="nav-item" data-depth="4"> <a class="nav-link" href="../deployment-guide/zookeeper-ensemble.html">ZooKeeper Ensemble Configuration</a> </li> <li class="nav-item" data-depth="4"> <a class="nav-link" href="../deployment-guide/zookeeper-file-management.html">ZooKeeper File Management</a> </li> <li class="nav-item" data-depth="4"> <a class="nav-link" href="../deployment-guide/zookeeper-utilities.html">ZooKeeper Utilities</a> </li> <li class="nav-item" data-depth="4"> <a class="nav-link" href="../deployment-guide/solrcloud-with-legacy-configuration-files.html">SolrCloud with Legacy Configuration Files</a> </li> </ul> </li> <li class="nav-item" data-depth="3"> <button class="nav-item-toggle"></button> <span class="nav-text">Admin UI</span> <ul class="nav-list"> <li class="nav-item" data-depth="4"> <a class="nav-link" href="../deployment-guide/collections-core-admin.html">Collections / Core Admin</a> </li> <li class="nav-item" data-depth="4"> <a class="nav-link" href="../deployment-guide/cloud-screens.html">Cloud Screens</a> </li> </ul> </li> </ul> </li> </ul> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <span class="nav-text">Monitoring Solr</span> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/configuring-logging.html">Configuring Logging</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/ping.html">Ping</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/metrics-reporting.html">Metrics Reporting</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/performance-statistics-reference.html">Performance Statistics Reference</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/plugins-stats-screen.html">Plugins &amp; Stats Screen</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/mbean-request-handler.html">MBean Request Handler</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/monitoring-with-prometheus-and-grafana.html">Monitoring with Prometheus and Grafana</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/jmx-with-solr.html">JMX with Solr</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/thread-dump.html">Thread Dump Screen</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/distributed-tracing.html">Distributed Tracing</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/circuit-breakers.html">Circuit Breakers</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/rate-limiters.html">Request Rate Limiters</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/task-management.html">Task Management</a> </li> </ul> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../deployment-guide/securing-solr.html">Securing Solr</a> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../deployment-guide/authentication-and-authorization-plugins.html">Configuring Authentication and Authorization</a> <ul class="nav-list"> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../deployment-guide/basic-authentication-plugin.html">Basic Authentication Plugin</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../deployment-guide/kerberos-authentication-plugin.html">Kerberos Authentication Plugin</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../deployment-guide/jwt-authentication-plugin.html">JWT Authentication Plugin</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../deployment-guide/cert-authentication-plugin.html">Certificate Authentication Plugin</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../deployment-guide/hadoop-authentication-plugin.html">Hadoop Authentication Plugin</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../deployment-guide/rule-based-authorization-plugin.html">Rule-Based Authorization Plugins</a> </li> </ul> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/audit-logging.html">Audit Logging</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/enabling-ssl.html">Enabling SSL</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/zookeeper-access-control.html">ZooKeeper Access Control</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/security-ui.html">Security UI</a> </li> </ul> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../deployment-guide/client-apis.html">Client APIs</a> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/solrj.html">SolrJ</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/javascript.html">JavaScript</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/python.html">Python</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../deployment-guide/ruby.html">Ruby</a> </li> </ul> </li> </ul> </li> <li class="nav-item" data-depth="0"> <button class="nav-item-toggle"></button> <span class="nav-text">Configuration Guide</span> <ul class="nav-list"> <li class="nav-item" data-depth="1"> <a class="nav-link" href="../configuration-guide/configuration-files.html">Solr Configuration Files</a> </li> <li class="nav-item" data-depth="1"> <a class="nav-link" href="../configuration-guide/property-substitution.html">Property Substitution in Configuration Files</a> </li> <li class="nav-item" data-depth="1"> <a class="nav-link" href="../configuration-guide/core-discovery.html">Core Discovery</a> </li> <li class="nav-item" data-depth="1"> <a class="nav-link" href="../configuration-guide/configuring-solr-xml.html">Configuring solr.xml</a> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../configuration-guide/configuring-solrconfig-xml.html">Configuring solrconfig.xml</a> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/index-location-format.html">Index Location and Format</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/index-segments-merging.html">Index Segments and Merging</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/schema-factory.html">Schema Factory Configuration</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/commits-transaction-logs.html">Commits and Transaction Logs</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/caches-warming.html">Caches and Query Warming</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/requesthandlers-searchcomponents.html">Request Handlers and Search Components</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/implicit-requesthandlers.html">Implicit Request Handlers</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/realtime-get.html">RealTime Get</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/initparams.html">InitParams</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/requestdispatcher.html">RequestDispatcher</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/update-request-processors.html">Update Request Processors</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/script-update-processor.html">Script Update Processor</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/codec-factory.html">Codec Factory</a> </li> </ul> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <span class="nav-text">Configuration APIs</span> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/config-api.html">Config API</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/request-parameters-api.html">Request Parameters API</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/managed-resources.html">Managed Resources</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/collections-api.html">Collections API</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/configsets-api.html">Configsets API</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/coreadmin-api.html">CoreAdmin API</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/v2-api.html">v2 API</a> </li> </ul> </li> <li class="nav-item" data-depth="1"> <a class="nav-link" href="../configuration-guide/config-sets.html">Configsets</a> </li> <li class="nav-item" data-depth="1"> <a class="nav-link" href="../configuration-guide/resource-loading.html">Resource Loading</a> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../configuration-guide/solr-plugins.html">Solr Plugins</a> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/libs.html">Lib Directories and Directives</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/solr-modules.html">Solr Modules</a> </li> <li class="nav-item" data-depth="2"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../configuration-guide/package-manager.html">Package Management</a> <ul class="nav-list"> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../configuration-guide/package-manager-internals.html">Package Manager Internals</a> </li> </ul> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/cluster-plugins.html">Cluster Plugins</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../configuration-guide/replica-placement-plugins.html">Replica Placement Plugins</a> </li> </ul> </li> </ul> </li> <li class="nav-item" data-depth="0"> <button class="nav-item-toggle"></button> <span class="nav-text">Schema and Indexing Guide</span> <ul class="nav-list"> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <span class="nav-text">Solr Schema</span> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/schema-elements.html">Schema Elements</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/schema-api.html">Schema API</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/schemaless-mode.html">Schemaless Mode</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/schema-designer.html">Schema Designer</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/schema-browser-screen.html">Schema Browser Screen</a> </li> </ul> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <span class="nav-text">Fields &amp; Schema Design</span> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/fields.html">Fields</a> </li> <li class="nav-item" data-depth="2"> <button class="nav-item-toggle"></button> <span class="nav-text">Field Types</span> <ul class="nav-list"> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../indexing-guide/field-type-definitions-and-properties.html">Field Type Definitions and Properties</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../indexing-guide/field-types-included-with-solr.html">Field Types Included with Solr</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../indexing-guide/currencies-exchange-rates.html">Currencies and Exchange Rates</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../indexing-guide/date-formatting-math.html">Date Formatting and Date Math</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../indexing-guide/enum-fields.html">Enum Fields</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../indexing-guide/external-files-processes.html">External Files and Processes</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../indexing-guide/field-properties-by-use-case.html">Field Properties by Use Case</a> </li> </ul> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/copy-fields.html">Copy Fields</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/dynamic-fields.html">Dynamic Fields</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/docvalues.html">DocValues</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/luke-request-handler.html">Luke Request Handler</a> </li> </ul> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../indexing-guide/document-analysis.html">Document Analysis in Solr</a> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/analyzers.html">Analyzers</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/tokenizers.html">Tokenizers</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/filters.html">Filters</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/charfilters.html">CharFilters</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/language-analysis.html">Language Analysis</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/phonetic-matching.html">Phonetic Matching</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/analysis-screen.html">Analysis Screen</a> </li> </ul> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <span class="nav-text">Indexing &amp; Data Operations</span> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../indexing-guide/indexing-with-update-handlers.html">Indexing with Update Handlers</a> <ul class="nav-list"> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../indexing-guide/transforming-and-indexing-custom-json.html">Transforming and Indexing Custom JSON</a> </li> </ul> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/indexing-with-cbor.html">Indexing with Update CBOR data format</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/indexing-with-tika.html">Indexing with Solr Cell and Apache Tika</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/indexing-nested-documents.html">Indexing Nested Documents</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/post-tool.html">Post Tool</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/documents-screen.html">Documents Screen</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/partial-document-updates.html">Partial Document Updates</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/reindexing.html">Reindexing</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/language-detection.html">Language Detection</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/de-duplication.html">De-Duplication</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../indexing-guide/content-streams.html">Content Streams</a> </li> </ul> </li> </ul> </li> <li class="nav-item" data-depth="0"> <button class="nav-item-toggle"></button> <span class="nav-text">Query Guide</span> <ul class="nav-list"> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../query-guide/query-syntax-and-parsers.html">Query Syntax and Parsers</a> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/common-query-parameters.html">Common Query Parameters</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/standard-query-parser.html">Standard Query Parser</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/dismax-query-parser.html">DisMax Query Parser</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/edismax-query-parser.html">Extended DisMax (eDisMax) Query Parser</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/function-queries.html">Function Queries</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/local-params.html">Local Params</a> </li> <li class="nav-item" data-depth="2"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../query-guide/json-request-api.html">JSON Request API</a> <ul class="nav-list"> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/json-query-dsl.html">JSON Query DSL</a> </li> </ul> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/searching-nested-documents.html">Searching Nested Child Documents</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/block-join-query-parser.html">Block Join Query Parser</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/join-query-parser.html">Join Query Parser</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/spatial-search.html">Spatial Search</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/dense-vector-search.html">Dense Vector Search</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/other-parsers.html">Other Query Parsers</a> </li> <li class="nav-item" data-depth="2"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../query-guide/sql-query.html">SQL Query Language</a> <ul class="nav-list"> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/jdbc-dbvisualizer.html">JDBC with DbVisualizer</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/jdbc-squirrel.html">JDBC with SQuirreL SQL</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/jdbc-zeppelin.html">JDBC with Apache Zeppelin</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/jdbc-python-jython.html">JDBC with Python/Jython</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/jdbc-r.html">JDBC with R</a> </li> </ul> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/query-screen.html">Query Screen</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/sql-screen.html">SQL Query Screen</a> </li> </ul> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <span class="nav-text">Enhancing Queries</span> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/spell-checking.html">Spell Checking</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/suggester.html">Suggester</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/morelikethis.html">MoreLikeThis</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/query-re-ranking.html">Query Re-Ranking</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/learning-to-rank.html">Learning To Rank</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/tagger-handler.html">Tagger Handler</a> </li> <li class="nav-item" data-depth="2"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../query-guide/analytics.html">Analytics Component</a> <ul class="nav-list"> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/analytics-expression-sources.html">Analytics Expression Sources</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/analytics-mapping-functions.html">Analytics Mapping Functions</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/analytics-reduction-functions.html">Analytics Reduction Functions</a> </li> </ul> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/terms-component.html">Terms Component</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/term-vector-component.html">Term Vector Component</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/stats-component.html">Stats Component</a> </li> </ul> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <span class="nav-text">Controlling Results</span> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/faceting.html">Faceting</a> </li> <li class="nav-item" data-depth="2"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../query-guide/json-facet-api.html">JSON Facet API</a> <ul class="nav-list"> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/json-faceting-domain-changes.html">JSON Faceting Domain Changes</a> </li> </ul> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/collapse-and-expand-results.html">Collapse and Expand Results</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/result-grouping.html">Result Grouping</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/result-clustering.html">Result Clustering</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/highlighting.html">Highlighting</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/query-elevation-component.html">Query Elevation Component</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/document-transformers.html">Document Transformers</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/response-writers.html">Response Writers</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/exporting-result-sets.html">Exporting Result Sets</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/pagination-of-results.html">Pagination of Results</a> </li> </ul> </li> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../query-guide/streaming-expressions.html">Streaming Expressions</a> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/stream-source-reference.html">Stream Source Reference</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/stream-decorator-reference.html">Stream Decorator Reference</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/stream-evaluator-reference.html">Stream Evaluator Reference</a> </li> <li class="nav-item" data-depth="2"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../query-guide/math-expressions.html">Streaming Expressions and Math Expressions</a> <ul class="nav-list"> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/visualization.html">Visualization</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/math-start.html">Getting Started</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/loading.html">Loading Data</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/search-sample.html">Searching, Sampling and Aggregation</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/transform.html">Transforming Data</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/scalar-math.html">Scalar Math</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/vector-math.html">Vector Math</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/variables.html">Variables</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/matrix-math.html">Matrices and Matrix Math</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/term-vectors.html">Text Analysis and Term Vectors</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/probability-distributions.html">Probability Distributions</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/statistics.html">Statistics</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/regression.html">Linear Regression</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/curve-fitting.html">Curve Fitting</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/time-series.html">Time Series</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/numerical-analysis.html">Interpolation, Derivatives and Integrals</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/dsp.html">Digital Signal Processing</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/simulations.html">Monte Carlo Simulations</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/machine-learning.html">Machine Learning</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/graph.html">Graph</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/computational-geometry.html">Computational Geometry</a> </li> <li class="nav-item" data-depth="3"> <a class="nav-link" href="../query-guide/logs.html">Log Analytics</a> </li> </ul> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/graph-traversal.html">Graph Traversal</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/stream-api.html">Stream Request Handler API</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../query-guide/stream-screen.html">Stream Screen</a> </li> </ul> </li> </ul> </li> <li class="nav-item" data-depth="0"> <ul class="nav-list"> <li class="nav-item" data-depth="1"> <button class="nav-item-toggle"></button> <a class="nav-link" href="../upgrade-notes/solr-upgrade-notes.html">Solr Upgrade Notes</a> <ul class="nav-list"> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../upgrade-notes/major-changes-in-solr-9.html">Major Changes in Solr 9</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../upgrade-notes/major-changes-in-solr-8.html">Major Changes in Solr 8</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../upgrade-notes/major-changes-in-solr-7.html">Major Changes in Solr 7</a> </li> <li class="nav-item" data-depth="2"> <a class="nav-link" href="../upgrade-notes/major-changes-in-solr-6.html">Major Changes in Solr 6</a> </li> </ul> </li> </ul> </li> <li class="nav-item" data-depth="0"> <ul class="nav-list"> <li class="nav-item" data-depth="1"> <a class="nav-link" href="../how-to-contribute/how-to-contribute.html">How To Contribute</a> </li> </ul> </li> </ul> </nav> </div> <!-- Solr Changes - End --> </div> </aside> </div> <main class="article"> <div class="toolbar" role="navigation"> <button class="nav-toggle"></button> <a href="../index.html" class="home-link"></a> <nav class="breadcrumbs" aria-label="breadcrumbs"> <ul> <li><a href="../index.html">Solr Reference Guide</a></li> <li>Getting Started</li> <li><a href="solr-tutorial.html">Solr Tutorials</a></li> </ul> </nav> <div class="page-versions"> <button class="version-menu-toggle" title="Show other versions of page">9.7</button> <div class="version-menu"> <a class="version is-current" href="solr-tutorial.html">9.7</a> <a class="version" href="../../9_6/getting-started/solr-tutorial.html">9.6</a> <a class="version" href="../../9_5/getting-started/solr-tutorial.html">9.5</a> <a class="version" href="../../9_4/getting-started/solr-tutorial.html">9.4</a> <a class="version" href="../../9_3/getting-started/solr-tutorial.html">9.3</a> <a class="version" href="../../9_2/getting-started/solr-tutorial.html">9.2</a> <a class="version" href="../../9_1/getting-started/solr-tutorial.html">9.1</a> <a class="version" href="../../9_0/getting-started/solr-tutorial.html">9.0</a> </div> </div> <!-- Solr Additions - Start --> <!-- Solr New File --> <span class="perma-link-copy" version="9_7"> </span><!-- Solr Additions - End --> <div class="edit-this-page"><a href="https://github.com/apache/solr/tree/main/solr/solr-ref-guide/modules/getting-started/pages/solr-tutorial.adoc">Edit this Page</a></div> </div> <div class="content"> <!-- Solr Changes - Start --> <nav class="toc sidebar" data-title="On This Page" data-levels="2"> <div class="toc-menu"></div> </nav> <!-- Solr Changes - End --><article class="doc"> <h1 class="page">Solr Tutorials</h1> <div id="preamble"> <div class="sectionbody"> <div class="paragraph"> <p>This tutorial covers getting Solr up and running, ingesting a variety of data sources into Solr collections, and getting a feel for the Solr administrative and search interfaces.</p> </div> <div class="paragraph"> <p>The tutorial is organized into a number of sections that each build on the one before it.</p> </div> <div class="paragraph"> <p>The <a href="tutorial-techproducts.html" class="xref page">first exercise</a> will ask you to start Solr, create a collection, index some basic documents, and then perform some searches.</p> </div> <div class="paragraph"> <p>The <a href="tutorial-films.html" class="xref page">second exercise</a> works with a different set of data, and explores requesting facets with the dataset.</p> </div> <div class="paragraph"> <p>The <a href="tutorial-diy.html" class="xref page">third exercise</a> encourages you to begin to work with your own data and start a plan for your implementation.</p> </div> <div class="paragraph"> <p>The tutorial also includes other, more advanced, exercises that introduce you to <a href="tutorial-paramsets.html" class="xref page">ParamSets</a>, <a href="tutorial-vectors.html" class="xref page">vector search</a>, <a href="tutorial-solrcloud.html" class="xref page">SolrCloud</a>, and <a href="tutorial-aws.html" class="xref page">deploying Solr to AWS</a>.</p> </div> <div class="paragraph"> <p>Finally, we&#8217;ll introduce <a href="#spatial-queries">spatial search</a>, and show you how to get your Solr instance back into a clean state.</p> </div> </div> </div> <div class="sect1"> <h2 id="before-you-begin"><a class="anchor" href="#before-you-begin"></a>Before You Begin</h2> <div class="sectionbody"> <div class="paragraph"> <p>To follow along with this tutorial, you will need&#8230;&#8203;</p> </div> <div class="olist arabic"> <ol class="arabic"> <li> <p>To meet the <a href="https://solr.apache.org/docs/9_7_0/SYSTEM_REQUIREMENTS.html">system requirements</a></p> </li> <li> <p>An Apache Solr release <a href="http://solr.apache.org/downloads.html">download</a>. This tutorial is designed for Apache Solr 9.7.</p> </li> </ol> </div> <div class="paragraph"> <p>For best results, please run the browser showing this tutorial and the Solr server on the same machine so tutorial links will correctly point to your Solr server.</p> </div> </div> </div> <div class="sect1"> <h2 id="unpack-solr"><a class="anchor" href="#unpack-solr"></a>Unpack Solr</h2> <div class="sectionbody"> <div class="paragraph"> <p>Begin by unzipping the full Solr release and changing your working directory to the subdirectory where Solr was installed. For example, with a shell in UNIX, Cygwin, or macOS:</p> </div> <div class="listingblock"> <div class="content"> <pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ ls solr* solr-{solr-full-version}.tgz $ tar -xzf solr-{solr-full-version}.tgz $ cd solr-{solr-full-version}/</code></pre> </div> </div> <div class="paragraph"> <p>If you&#8217;d like to know more about Solr&#8217;s directory layout before moving to the first exercise, see the section <a href="../deployment-guide/installing-solr.html#directory-layout" class="xref page">Directory Layout</a> for details.</p> </div> </div> </div> <div class="sect1"> <h2 id="start-with-the-exercises"><a class="anchor" href="#start-with-the-exercises"></a>Start with the exercises</h2> <div class="sectionbody"> <div class="paragraph"> <p>Navigate to <a href="tutorial-five-minutes.html" class="xref page">Exercise 0: Five Minutes to Searching!</a> to get started. Don&#8217;t worry, you can come back to this page at a later point, after you&#8217;re done with the exercises.</p> </div> </div> </div> <div class="sect1"> <h2 id="spatial-queries"><a class="anchor" href="#spatial-queries"></a>Spatial Queries</h2> <div class="sectionbody"> <div class="paragraph"> <p>Solr has sophisticated geospatial support, including searching within a specified distance range of a given location (or within a bounding box), sorting by distance, or even boosting results by the distance.</p> </div> <div class="paragraph"> <p>Some of the example techproducts documents we indexed in Exercise 1 have locations associated with them to illustrate the spatial capabilities. To reindex this data, see <a href="tutorial-techproducts.html" class="xref page">Exercise 1</a>.</p> </div> <div class="paragraph"> <p>To learn more about Solr&#8217;s spatial capabilities, see the section <a href="../query-guide/spatial-search.html" class="xref page">Spatial Search</a>.</p> </div> </div> </div> <div class="sect1"> <h2 id="wrapping-up"><a class="anchor" href="#wrapping-up"></a>Wrapping Up</h2> <div class="sectionbody"> <div class="paragraph"> <p>If you&#8217;ve run the full set of commands in this quick start guide you have done the following:</p> </div> <div class="ulist"> <ul> <li> <p>Launched Solr into SolrCloud mode, two nodes, two collections including shards and replicas</p> </li> <li> <p>Indexed several types of files</p> </li> <li> <p>Used the Schema API to modify your schema</p> </li> <li> <p>Opened the admin console, used its query interface to get results</p> </li> <li> <p>Opened the /browse interface to explore Solr&#8217;s features in a more friendly and familiar interface</p> </li> </ul> </div> <div class="paragraph"> <p>Nice work!</p> </div> </div> </div> <div class="sect1"> <h2 id="cleanup"><a class="anchor" href="#cleanup"></a>Cleanup</h2> <div class="sectionbody"> <div class="paragraph"> <p>As you work through this tutorial, you may want to stop Solr and reset the environment back to the starting point. The following command line will stop Solr and remove the directories for each of the two nodes that were created all the way back in Exercise 1:</p> </div> <div class="listingblock"> <div class="content"> <pre class="highlightjs highlight"><code class="language-console hljs" data-lang="console">$ bin/solr stop --all $ rm -Rf example/cloud/</code></pre> </div> </div> </div> </div> <div class="sect1"> <h2 id="where-to-next"><a class="anchor" href="#where-to-next"></a>Where to next?</h2> <div class="sectionbody"> <div class="paragraph"> <p>This Guide will be your best resource for learning more about Solr.</p> </div> <div class="paragraph"> <p>Solr also has a robust community made up of people happy to help you get started. For more information, check out the Solr website&#8217;s <a href="http://solr.apache.org/resources.html">Resources page</a>.</p> </div> </div> </div> </article> </div> </main> </div> <footer class="footer"> <!-- Solr Changes - Start --> <p> &copy; Apache Software Foundation. All rights reserved.</p> <script async src="../../../_/js/vendor/tabs.js"></script> <!-- Solr Changes - End --> </footer> <script src="../../../_/js/site.js"></script> <script async src="../../../_/js/vendor/highlight.js"></script> <script src="../../../_/js/vendor/lunr.js"></script> <script src="../../../_/js/search-ui.js" id="search-ui-script" data-site-root-path="../../.." data-snippet-length="100" data-stylesheet="../../../_/css/search.css"></script> <script async src="../../../search-index.js"></script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10