This document provides an overview of how to enable search capabilities in Cassandra applications using Datastax Enterprise (DSE). It discusses how DSE allows indexing and searching of Cassandra data by integrating the Solr/Lucene search engine. Specifically, it explains that with DSE, data remains stored in Cassandra while indexes are maintained in Solr/Lucene. This provides search capabilities without requiring ETL processes to migrate data out of Cassandra. The document includes code examples of how to define a table and secondary index in Cassandra to support full-text search on tags columns using DSE.
WordPress Websites for Engineers: Elevate Your Brand
Ā
DataStax: Enabling Search in your Cassandra Application with DataStax Enterprise
1. Lead Technical Evangelist- Datastax Enterprise
@RachelPedreschi
Rachel PedreschiāØ
Enabling Search in your Cassandra Application with Datastax Enterprise
1
19. Behind the scenesā¦
dse_tool
schema.xml
solrconļ¬g.xml
CQL Query$ dsetool create_core killrvideo.videos generateResources=true
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<schema name="autoSolrSchema" version="1.5">
<types>
ā¦
<fields>
<field indexed="true" multiValued="false" name="added_date" stored="true" type="TrieDateField"/>
<field indexed="true" multiValued="false" name="location" stored="true" type="TextField"/>
<field indexed="true" multiValued="false" name="preview_image_location" stored="true" type="TextField"/>
<field indexed="true" multiValued="false" name="name" termVectors="true" stored="true" type="TextField"/>
<field indexed="true" multiValued="true" name="tags" termVectors="true" stored="true" type="TextField"/>
<field indexed="true" multiValued="false" name="userid" stored="true" type="UUIDField"/>
<field indexed="true" multiValued="false" name="videoid" stored="true" type="UUIDField"/>
<field indexed="true" multiValued="false" name="location_type" stored="true" type="TrieIntField"/>
<field indexed="true" multiValued="false" name="description" termVectors="true" stored="true" type="TextField"/>
</fields>
<uniqueKey>videoid</uniqueKey>
</schema>
<!--
=======
Copyright DataStax, Inc.
Please see the included license file for details.
-->
<!--
For more details about configurations options that may appear in
this file, see http://wiki.apache.org/solr/SolrConfigXml.
-->
<config>
<!-- In all configuration below, a prefix of "solr." for class names
is an alias that causes solr to search appropriate packages,
including org.apache.solr.(search|update|request|core|analysis)
You may also specify a fully qualified Java classname if you
have your own custom plugins.
-->
ā¦
SELECT * FROM killrvideo.videos
WHERE solr_query=āname:*ā