Filtering documents with retail price higher than 5000.Filtering documents with retail price higher than 5000.

Filtering documents with retail price higher than 5000.

numeric

This filter is to perform the filtering operators on a numeric value. For instance, returning the documents with a price larger than 1000 dollars.

from relevanceai import Client 
client = Client()

filter =  [{'field' : 'retail_price',     # field to look at
            'filter_type' : 'numeric', 
            "condition":">", 
            "condition_value":5000}]
filtered_data = client.datasets.documents.get_where(dataset_id, filter)

Did this page help you?