Solr getting started tutorial
Steps for setting up Cassandra and Solr for the tutorial.
- Create a Cassandra table.
- Import data.
- Create a search index.
These steps for setting up Cassandra and Solr are explained in detail in this tutorial. After completing the setup, you use DSE Search/Solr to perform simple queries, sort the query results, and construct facet queries.
In this tutorial, you use some sample data from a health-related census.
Setup
This setup assumes you started DataStax Enterprise in DSE Search/Solr mode and downloaded the sample data and tutorial files. The tutorial files consist of a Solr schema that corresponds to the CQL table definition, which uses a compound primary key. The partitioning key is the id column and the clustering key is the age column. Also included in the schema are several copy fields and a multivalued field that are used for the faceted search.