How to query lucence index in cassandra

21 views
Skip to first unread message

Tuan Anh Ho Dien

unread,
Feb 28, 2021, 11:45:44 PM2/28/21
to gocql
Hi, in Cassandra I can query with format:
SELECT * FROM drive_file WHERE drive_file_index = '{
query: {type: "wildcard", field: "name", value: "*packaging*"}}'
) LIMIT 100;
However, when I use gocql, I cannot perform this query as:
iterable := Session.Query(`SELECT * FROM drive_file WHERE expr(drive_file_index, ?) LIMIT 10`, `{query: {type: "wildcard", field: "name", value: "*packaging*"}}`).Iter()
Please help me to solve this issue.
Many thanks.
Tuan Anh.
Reply all
Reply to author
Forward
0 new messages