cassandra-lucene-index icon indicating copy to clipboard operation
cassandra-lucene-index copied to clipboard

Custom index expressions cannot be used in WHERE clauses for UPDATE or DELETE statements

Open didip opened this issue 7 years ago • 0 comments

Hi folks,

Is it possible to perform UPDATE or DELETE using Lucene JSON DSL?

Example:

DELETE FROM my_ks.my_table WHERE expr(my_index, '{
   filter: {
      type: "boolean",
      must: [
        {type: "wildcard", field: "id", value: "1*"},
        {type: "wildcard", field: "id", value: "2*"},
      ]
   }
}');

didip avatar Sep 25 '17 21:09 didip