Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
I Am Using

I am using tasks = Task.get_tasks(project_name='project', task_name='partial_task_name_here') to retrieve my experiments metadata for analysis.

I want to expose an interface for user to query experiments
, but want to prevent large requestrs (i.e. query every single tasks exist), How can I achieve this?

Posted 3 years ago
Votes Newest

Answers 5

Hi EnviousStarfish54 ,

You can use task_filter parameter for filter and order the tasks.
Can this do the trick?

Posted 3 years ago

It's for addition filtering only right? My use case is to prevent user accidentally querying the entire database.

I want to achieve something similar we would do in SQL

select * from user_query limit 100;

Posted 3 years ago

I don't want user making heavy requests

Posted 3 years ago

You can add a limitation to the query page size:
task_filter = {"page_size": <your-limit>, "page": 0}
what do you think?

Posted 3 years ago

Oh great! This works like a charm

Posted 3 years ago
5 Answers
3 years ago
one year ago