Created
February 25, 2018 07:24
-
-
Save HackRanger/0968686f4ae69ee6261d3f6d5e669f5b to your computer and use it in GitHub Desktop.
prods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE amazonindia.products ( | |
product_id uuid, | |
product_price double, | |
category_desc text, | |
category_name text, | |
product_name text, | |
PRIMARY KEY (product_id, product_price) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CREATE CUSTOM INDEX product_name_idx ON amazonindia.products (product_name) USING 'org.apache.cassandra.index.sasi.SASIIndex' WITH OPTIONS = {'analyzer_class': 'org.apache.cassandra.index.sasi.analyzer.StandardAnalyzer', 'case_sensitive': 'false'};