SQL in Solr Michael Suzuki.

Slides:



Advertisements
Similar presentations
Copyright  Oracle Corporation, All rights reserved. 2 Java and Databases: An Overview.
Advertisements

.NET C RYSTAL R EPORTS …Vishal Kumar.. I NTRODUCTION T O C RYSTAL REPORT :- For creating interactive reports that can be integrated into a wide range.
1 Foundations of Software Design Lecture 27: Java Database Programming Marti Hearst Fall 2002.
Session-01. Hibernate Framework ? Why we use Hibernate ?
FHIRFarm – How to build a FHIR Server Farm (quickly)
Confidential ODBC May 7, Features What is ODBC? Why Create an ODBC Driver for Rochade? How do we Expose Rochade as Relational Transformation.
Overview of Database Access in.Net Josh Bowen CIS 764-FS2008.
Introducing FDO Toolbox Jackie Ng. Presentation Overview What is FDO? What is FDO Toolbox? Major Features of FDO Toolbox Demos.
Tutorial SQL Server and Matlab CIS 526. Build a New Database in SQL server.
Windows Azure Migrating SQL Server Workloads Speaker Title Organization.
Hive Facebook 2009.
Using ODBC drivers with Windows Applications.  Slightly Different steps for each release.  These steps are for  Creating a Query.  Autofilter.
SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)
Mainframe (Host) - Communications - User Interface - Business Logic - DBMS - Operating System - Storage (DB Files) Terminal (Display/Keyboard) Terminal.
1 1 EPCC 2 Curtin Business School & Edinburgh University Management School Michael J. Jackson 1 Ashley D. Lloyd 2 Terence M. Sloan 1 Enabling Access to.
Mobile agents Student: Thomas Rietzler ( ), BSc (Hons) Computing. Supervisor: Bill Buchanan. Second maker: Jim Jackson. School of Computing, Napier.
Accessing Relational Databases from the World Wide Web by Tam Nguyen & V. Srinivasan Presented by Megan Thomas and Randi Thomas CS294-7 February 11, 1999.
12/6/2015B.Ramamurthy1 Java Database Connectivity B.Ramamurthy.
CIRSCALC - CT BONE DENSITOMETRY. Agenda  What is CIRSCALC project?  Tools Used.  Code Description Database Connectivity Crystal Reports Graph  Demo.
DATABASE CONNECTIVITY TO MYSQL. Introduction =>A real life application needs to manipulate data stored in a Database. =>A database is a collection of.
Using FileMaker Pro for PowerSchool Reporting Tim Scoff
Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Data Query Peter McCartney RDIFS Training Workshop Sevilleta LTER.
File Server Architecture In File Server Architecture, file server can’t process the data but can only pass on the data to the client who can process it.
Basics of JDBC Session 14.
Database Overview What is a database? What types of databases are there? How are databases more powerful than spreadsheets?
Load Testing Your Alfresco Add-ons Michael Suzuki Software Engineer.
Assignment Help - BookMyEssay. What is Oracle? Oracle was developed in 1977 by Lawrence Ellison. Data can be directly accessed by the users through Structured.
Database: JDBC Overview
Lec - 14.
MATLAB DATABASE Configuration
Unvieling Jet Express: What it offers the GP Community
Using Common Table Expressions
ODBC, OCCI and JDBC overview
Unvieling Jet Express: What it offers the GP Community
Data Virtualization Demoette… ADO.NET Client
Getting Started with Power Query
Data Virtualization Demoette… JDBC Clients
Database JDBC Overview CS Programming Languages for Web Applications
INSPIRE Geoportal Thematic Views Application
Microsoft Connect /2/2018 2:41 PM
Unvieling Jet Express: What it offers the GP Community
Data Virtualization Community Edition
PROC SQL, Overview.
Recursion in SQL Basic recursive WITH statement ― Demo.
A developers guide to Azure SQL Data Warehouse
07 | Analyzing Big Data with Excel
 Microsoft owned SQL server is an SQL based Relational DBMS which offers corporate solutions to database management. SQL Server Optimization can be a.
Eric Hill, Software Developer, JMP
Recursion in SQL Basic recursive WITH statement.
SQL Data Modification Statements.
Server & Tools Business
A developers guide to Azure SQL Data Warehouse
Instructor: Mohamed Eltabakh
Jim Nakashima Program Manager Cloud Tools
Java Database Connectivity
Data Management Innovations 2017 High level overview of DB
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
SQL Server 2016 Security Features
Databases Continued 10/18/05.
Queries More Practice.
06 | Understanding Databases
Database Processing: David M. Kroenke’s Chapter Twelve: Part One
September 12-14, 2018 Raleigh, NC.
Data Access Layer (Con’t) (Overview)
Storing and Processing Sensor Networks Data in Public Clouds
Updating Databases With Open SQL
SSIS - Overview John Manguno. SSIS - Overview John Manguno.
Updating Databases With Open SQL
Java Chapter 6 (Estifanos Tilahun Mihret--Tech with Estif)
Informatics Practices Study Guide for Class 11 on the Extramarks App
Presentation transcript:

SQL in Solr Michael Suzuki

Solr is now bilingual!

Overview State of play How does it work Why is it important Sample queries Lost in translation Predicates in SQL Demo

State of play Solr SQL introduced in Solr 6, 2016. Ported to use Calcite over Presto SQL Parser, 2017. It is a feature that is only supported in Solr 6 Cloud. There is work underway to port it to a standalone Solr. ODBC coming soon via calcite Phoenix.

How does it work It treats a Solr collection as a table. It translates SQL statement to streaming expression. Uses the Solr streaming expression API.

Why is it important Another way to query. SQL skill is more common and widely used. Hides Solr’s complexity and its various features. Existing reporting tools work with JDBC drivers.

Sample queries: How many films? select params={q=*:*&fl=numFound} select count(*) from films Which actor played the most leading roles? select params={q=*:*&json.facet={"actor_1_name":{"type":"terms","field":"actor_1_name","sort":{"count":"desc"}," facet":{}}}} select actor_1_name, count(*)from films group by actor_1_name order by count(*) desc Which director has the highest gross? select params={q=*:*&json.facet={"director_name":{"type":"terms","field":"director_name","limit":125,"sort":{"facet _0":"desc"},"facet":{"facet_0":"sum(gross)"} select director_name,sum(gross) from films group by director_name order by sum(gross) desc

Lost In Translation Solr is not a database. SELECT * FROM TABLE; is not supported. LIKE is not supported. Not Null is not supported.

Solr Predicates in SQL select movie_title from films where title_year = '[2013 TO 2015]' select movie_title, imdb_score from films where (actor_1_name ='Johnny Depp' and (imdb_score = '[7 TO *]')) select movie_title, title_year from films where _query_ = 'movie_title:B*' and title_year > 2014 Not null work around: select movie_title, title_year from films where _query_ = 'movie_title:*'

Demo

@suzukimichael @alfresco Thank you @suzukimichael @alfresco