I have a table structure like
create a table file (primary key of text id, text fname, text mimetype, isdir boolean, location text);
create the file_location index in the file (location);
and then the contents in the table:
insert into the file (id, fname, mimetype, isdir, location) values ('1', 'f1', 'pdf', False, 'c: / test /'); insert into the files (id, fname, mimetype, isdir, location) values ('2', 'f2', 'pdf', False, 'c: / test /'); insert into the files (id, fname, mimetype, isdir, location) values ('3', 'f3', 'pdf', False, 'c: / test /'); insert values ('4', 'f4', 'pdf', False, 'c: / test / a /') into the files (id, fname, mimetype, isdir, location);
I want to list all identifiers that match the following criteria:
select id from the file where "% / test /%" is located;
I know that, as it is not supported in CQL, can someone suggest an approach that I should use for such wildcard search queries. Please suggest.