I am wondering what is the best practice to display search results in a repeatable group.
I do have 2 options in mind:
“Search for dataset” and then add constraints on what you would like to see (e.g. matching the input field).
“Search for dataset:filtered” and then add constraints into the filter window.
I must admit I am a bit confused.
Anyone with a best practice? Both works!
Thanks in advance.
Generally speaking, the more constraints you can put in the search, the better. This will limit the number of results that have to travel from server to client.
Do as much filtering in the search constraints as you can. (Not all constraints are possible in the search constraints dialog. Like the Advanced condition is only available [usually] in :filter … though you do have :filter in API workflows and those are server side.)
What happens is everything returned by Search comes to the browser. :filter then operates on that list in memory/in the browser.
@mebeingken, @keith, thanks for your reply.
Constraints happen on the server and the :filter element at client side.
So the best is to use as many constraints possible and limit the number of :filter usage.
Thanks for this insight!
This topic was automatically closed after 70 days. New replies are no longer allowed.