Skip to content

Instantly share code, notes, and snippets.

@HackRanger
Created February 25, 2018 07:24
Show Gist options
  • Save HackRanger/0968686f4ae69ee6261d3f6d5e669f5b to your computer and use it in GitHub Desktop.
Save HackRanger/0968686f4ae69ee6261d3f6d5e669f5b to your computer and use it in GitHub Desktop.
prods
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)
)
@HackRanger
Copy link
Author

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'};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment