3. A reference application for users looking to learn how to use
Cassandra and DataStax Enterprise with their programming
language of choice.
https://killrvideo.github.io/
4. 4
The video catalog service
is essentially a product
catalog where videos are
our product. How do we
make it searchable?
6. 6
When users add videos,
they add tags describing
the video's content. Tags
are just keywords that
describe the content.
7. 7
CREATE TABLE videos_by_tag (
tag text,
videoid uuid,
added_date timestamp,
userid uuid,
name text,
preview_image_location text,
tagged_date timestamp,
PRIMARY KEY (tag, videoid)
);
SELECT * FROM videos_by_tag
WHERE tag = 'cassandra';
What about searching for
keywords in the title or
description? Users expect
more from search.
8. 8
With DSE Search, we can
search on our Cassandra
data without complicating
things by introducing other
pieces infrastructure.
11. 11
In reality, enabling basic
search functionality on a
table in DataStax Enterprise
is a simple command line
instruction.
SELECT * FROM videos
WHERE solr_query =
'description:cassandra';
> dsetool create_core killrvideo.videos generateResources=true
12. 12
You've also got all the
power of Solr for more
complex queries and can
customize those XML
resources for more
complicated features.
{ "q": "{!edismax qf='name^2 tags^1 description'} cassandra" }
13. 13
But wait, there’s more! DSE
5.1 (coming soon to a
download near you) has a
ton of Search
improvements.
Some key improvements in
DSE Search 5.1 include:
• Solr has been upgraded
from 4.10 to 6.0.1
• Core management can
be done using CQL
CREATE SEARCH INDEX ON killrvideo.videos;