0

I am building a Notebook in AWS OpenSearch (formerly Amazon elasticsearch) and I want to provide a condition to the "where" command excluding documents where a particular field is not null.

In SQL this would simply be "where my_field is not null" however, The notebook indicates a syntax error where this condition is added to the where command.

gbegley
  • 2,609
  • 5
  • 29
  • 41

1 Answers1

0

This worked

where length(my_field)>0

From Open Distro for Elasticsearch function docs here and here.

gbegley
  • 2,609
  • 5
  • 29
  • 41