Skip to content

lucene - Execute lucene inside DataPrime

The lucene operator can be used to execute a Lucene query as part of your DataPrime query, making it possible to intermingle the languages when necessary.

NOTE: Field names inside the lucene query are relative to $d (the root level of user-data).

Syntax

lucene <lucene-query-as-a-string>

Example - Basic usage

The Lucene query is passed in as a string, making it simple to use. For example:

lucene 'pod:recommender AND (is_error:true or status_code:404)'