SlideShare a Scribd company logo
RediSearch
RediSearch
●
●
●
Redis has no built in
concept of indexing!
●
○
○
○
●
⇒ …
Key
"I'm a Plain Text String!"
{ A: “foo”, B: “bar”, C: “baz” }
{ A , B , C , D , E }
[ A → B → C → D → E ]
{ A: 0.1, B: 0.3, C: 100, D: 1337 }
{ A: (51.5, 0.12), B: (32.1, 34.7) }
00110101 11001110 10101010
Looks like a
set will do!
●
○
○
redis> SADD hello doc1
redis> SADD world doc1
redis> SINTER hello world
●
●
●
●
●
●
●
●
RediSearch
●
●
●
●
●
●
●
○
○
○
○
RediSearch
RediSearch
Tokenizing /
Indexing
… …
…
… …
…
Text: “lcd tv”
Price: 500
Doc1
Intersect Index Entries
●
●
●
○
○
○
Key
[doc1, doc2, …]
{title:“Toshiba 32 LCD TV”, …}
{200..400: [prod1, prod2, …]… }
Toshib*
{ A: (51.5, 0.12), B: (32.1, 34.7) }
RediSearch
18
●
●
●
●
●
INTERSECT
UNION Obama
Barack Barak
Date: 2010-2016
Scoring functionResult Processor
RediSearch
Hello world
means: hello AND world
22
"Hello world"
23
Hello|hola world|mundo
(hello world)|(hola mundo)
24
@title:Hello world
25
@title|body:Hello world @pic:jpg
modifiers are implicitly "AND"ed
26
@title:lcd tv @price:[100 300]
@title:lcd tv @price:[(100 +inf]
27
@title:tv ~@description:lcd
optional matches just increase score
28
@title:tv -plasma
29
Hello wo*
30
@title:(lcd tv)
@price:[100 500]
-@type:4K|Plasma
31
●
●
●
○
○
●
●
●
○
○
○
●
○
○
○
○
redisearch.io/Clients/
RediSearch
●
●
○
○
○
○
○
●
FT.CREATE products
SCHEMA
title TEXT SORTABLE
body TEXT
cats TEXT NOSTEM
brand TEXT NOSTEM
price NUMERIC SORTABLE
FT.ADD products
prod1 0.58
FIELDS
title “Samsung 42 Inch LCD TV”
brand “Samsung”
body “Is Nice TV!”
cats “tvs, electronics”
price 350
FT.SEARCH products
“@title|body:(lcd 42|44|50)
@cats:(tvs|electronics )
@brand:(samsung|sony)
@price:[200 500]”
LIMIT 0 20
SORTBY price DESC
RediSearch
●
●
●
●
●
●
●
○
○
○
RediSearch
RediSearch
FT.SEARCH idx “foo”
FT.SEARCH idx “foo”
RediSearch
FT.SEARCH idx “foo”
FT.SEARCH idx “foo”
RediSearch
●
●
●
●
●
RediSearch
RediSearch
RediSearch
RediSearch
RediSearch
RediSearch
●
●
●
Dvir Volk
Senior Architect
Redis Labs
@dvirsky
RediSearch
●
●
●
●
Query 1
Query 2
Query 3
Query 4
Query 1
Query 1
Query 2
Query 3
Query 2
Query 2
ElapsedTime
Serial Query
Execution
Concurrent Query
Execution
Query 4
RediSearch
RediSearch

More Related Content

What's hot (20)

PDF
Load Data Fast!
Karwin Software Solutions LLC
 
PDF
Testing Persistent Storage Performance in Kubernetes with Sherlock
ScyllaDB
 
PPTX
Elk
Caleb Wang
 
PPTX
Introduction to ELK
YuHsuan Chen
 
PDF
Fast federated SQL with Apache Calcite
Chris Baynes
 
PPTX
quick intro to elastic search
medcl
 
PPTX
Elasticsearch Introduction
Roopendra Vishwakarma
 
PPTX
Optimizing queries MySQL
Georgi Sotirov
 
PDF
Top-10-Features-In-MySQL-8.0 - Vinoth Kanna RS - Mydbops Team
Mydbops
 
PPT
Fast querying indexing for performance (4)
MongoDB
 
ODP
Deep Dive Into Elasticsearch
Knoldus Inc.
 
PDF
Getting Started with Confluent Schema Registry
confluent
 
PPTX
RedisConf17- Using Redis at scale @ Twitter
Redis Labs
 
PDF
MongoDB Performance Tuning
MongoDB
 
PPTX
Understanding How CQL3 Maps to Cassandra's Internal Data Structure
DataStax
 
PDF
Gdb basics for my sql db as (percona live europe 2019)
Valerii Kravchuk
 
PDF
MySQL GTID 시작하기
I Goo Lee
 
PPTX
Elastic search Walkthrough
Suhel Meman
 
PDF
Scaling search with SolrCloud
Saumitra Srivastav
 
PDF
InfluxDB IOx Tech Talks: Query Engine Design and the Rust-Based DataFusion in...
InfluxData
 
Testing Persistent Storage Performance in Kubernetes with Sherlock
ScyllaDB
 
Introduction to ELK
YuHsuan Chen
 
Fast federated SQL with Apache Calcite
Chris Baynes
 
quick intro to elastic search
medcl
 
Elasticsearch Introduction
Roopendra Vishwakarma
 
Optimizing queries MySQL
Georgi Sotirov
 
Top-10-Features-In-MySQL-8.0 - Vinoth Kanna RS - Mydbops Team
Mydbops
 
Fast querying indexing for performance (4)
MongoDB
 
Deep Dive Into Elasticsearch
Knoldus Inc.
 
Getting Started with Confluent Schema Registry
confluent
 
RedisConf17- Using Redis at scale @ Twitter
Redis Labs
 
MongoDB Performance Tuning
MongoDB
 
Understanding How CQL3 Maps to Cassandra's Internal Data Structure
DataStax
 
Gdb basics for my sql db as (percona live europe 2019)
Valerii Kravchuk
 
MySQL GTID 시작하기
I Goo Lee
 
Elastic search Walkthrough
Suhel Meman
 
Scaling search with SolrCloud
Saumitra Srivastav
 
InfluxDB IOx Tech Talks: Query Engine Design and the Rust-Based DataFusion in...
InfluxData
 

Similar to RediSearch (7)

PDF
Searching Billions of Documents with Redis
Dvir Volk
 
PDF
Indexing, searching, and aggregation with redi search and .net
Stephen Lorello
 
PDF
RedisConf17 - Searching Billions of Documents with Redis
Redis Labs
 
PPTX
Redis Indices (#RedisTLV)
Itamar Haber
 
PPTX
Redis Modules - Redis India Tour - 2017
HashedIn Technologies
 
PDF
Redis basics
Arthur Shvetsov
 
PPTX
Redis 101 Data Structure
Ismaeel Enjreny
 
Searching Billions of Documents with Redis
Dvir Volk
 
Indexing, searching, and aggregation with redi search and .net
Stephen Lorello
 
RedisConf17 - Searching Billions of Documents with Redis
Redis Labs
 
Redis Indices (#RedisTLV)
Itamar Haber
 
Redis Modules - Redis India Tour - 2017
HashedIn Technologies
 
Redis basics
Arthur Shvetsov
 
Redis 101 Data Structure
Ismaeel Enjreny
 
Ad

More from Dvir Volk (8)

PDF
Boosting Machine Learning with Redis Modules and Spark
Dvir Volk
 
PDF
Redis modules 101
Dvir Volk
 
PDF
Tales Of The Black Knight - Keeping EverythingMe running
Dvir Volk
 
PDF
10 reasons to be excited about go
Dvir Volk
 
PDF
Kicking ass with redis
Dvir Volk
 
PDF
Introduction to redis - version 2
Dvir Volk
 
PPT
Introduction to Thrift
Dvir Volk
 
PDF
Introduction to Redis
Dvir Volk
 
Boosting Machine Learning with Redis Modules and Spark
Dvir Volk
 
Redis modules 101
Dvir Volk
 
Tales Of The Black Knight - Keeping EverythingMe running
Dvir Volk
 
10 reasons to be excited about go
Dvir Volk
 
Kicking ass with redis
Dvir Volk
 
Introduction to redis - version 2
Dvir Volk
 
Introduction to Thrift
Dvir Volk
 
Introduction to Redis
Dvir Volk
 
Ad

Recently uploaded (20)

PPTX
World-population.pptx fire bunberbpeople
umutunsalnsl4402
 
PPTX
M1-T1.pptxM1-T1.pptxM1-T1.pptxM1-T1.pptx
teodoroferiarevanojr
 
PPTX
White Blue Simple Modern Enhancing Sales Strategy Presentation_20250724_21093...
RamNeymarjr
 
PPTX
Multiscale Segmentation of Survey Respondents: Seeing the Trees and the Fores...
Sione Palu
 
PPTX
Data-Driven Machine Learning for Rail Infrastructure Health Monitoring
Sione Palu
 
PPTX
Fluvial_Civilizations_Presentation (1).pptx
alisslovemendoza7
 
PPTX
short term internship project on Data visualization
JMJCollegeComputerde
 
PDF
D9110.pdfdsfvsdfvsdfvsdfvfvfsvfsvffsdfvsdfvsd
minhn6673
 
PPTX
7 Easy Ways to Improve Clarity in Your BI Reports
sophiegracewriter
 
PPTX
lecture 13 mind test academy it skills.pptx
ggesjmrasoolpark
 
PPT
From Vision to Reality: The Digital India Revolution
Harsh Bharvadiya
 
PPTX
HSE WEEKLY REPORT for dummies and lazzzzy.pptx
ahmedibrahim691723
 
PPTX
UVA-Ortho-PPT-Final-1.pptx Data analytics relevant to the top
chinnusindhu1
 
PPT
Real Life Application of Set theory, Relations and Functions
manavparmar205
 
PPTX
Future_of_AI_Presentation for everyone.pptx
boranamanju07
 
PPTX
Customer Segmentation: Seeing the Trees and the Forest Simultaneously
Sione Palu
 
PDF
WISE main accomplishments for ISQOLS award July 2025.pdf
StatsCommunications
 
PPTX
The whitetiger novel review for collegeassignment.pptx
DhruvPatel754154
 
PPTX
IP_Journal_Articles_2025IP_Journal_Articles_2025
mishell212144
 
PDF
apidays Munich 2025 - Developer Portals, API Catalogs, and Marketplaces, Miri...
apidays
 
World-population.pptx fire bunberbpeople
umutunsalnsl4402
 
M1-T1.pptxM1-T1.pptxM1-T1.pptxM1-T1.pptx
teodoroferiarevanojr
 
White Blue Simple Modern Enhancing Sales Strategy Presentation_20250724_21093...
RamNeymarjr
 
Multiscale Segmentation of Survey Respondents: Seeing the Trees and the Fores...
Sione Palu
 
Data-Driven Machine Learning for Rail Infrastructure Health Monitoring
Sione Palu
 
Fluvial_Civilizations_Presentation (1).pptx
alisslovemendoza7
 
short term internship project on Data visualization
JMJCollegeComputerde
 
D9110.pdfdsfvsdfvsdfvsdfvfvfsvfsvffsdfvsdfvsd
minhn6673
 
7 Easy Ways to Improve Clarity in Your BI Reports
sophiegracewriter
 
lecture 13 mind test academy it skills.pptx
ggesjmrasoolpark
 
From Vision to Reality: The Digital India Revolution
Harsh Bharvadiya
 
HSE WEEKLY REPORT for dummies and lazzzzy.pptx
ahmedibrahim691723
 
UVA-Ortho-PPT-Final-1.pptx Data analytics relevant to the top
chinnusindhu1
 
Real Life Application of Set theory, Relations and Functions
manavparmar205
 
Future_of_AI_Presentation for everyone.pptx
boranamanju07
 
Customer Segmentation: Seeing the Trees and the Forest Simultaneously
Sione Palu
 
WISE main accomplishments for ISQOLS award July 2025.pdf
StatsCommunications
 
The whitetiger novel review for collegeassignment.pptx
DhruvPatel754154
 
IP_Journal_Articles_2025IP_Journal_Articles_2025
mishell212144
 
apidays Munich 2025 - Developer Portals, API Catalogs, and Marketplaces, Miri...
apidays
 

RediSearch