Ruby on rails Cassandra cequel search by regex -


i trying use rails cassandra database , cequel gem. need find record in database regular expression. looks not work cassandra. model

class keywordname   include cequel::record   key :pg_id, :text   column :name, :text, :index => true end  keywordname.new(name: 'some_name', pg_id: '2').save! cql (12ms) insert keyword_names (pg_id, name) values ('2', 'some_name') => #<keywordname pg_id: "2", name: "some_name"> 

now want find record regex query

keywordname.where(name: /.*/).first cql (2ms) select * keyword_names name = '(?-mix:.*)' limit 1 => nil 

but request generate wrong cql query.

what correct way create correct regex query cequel or create raw cql query search records regular exprations?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -