Skip to main content
Version: 1.27 (Current)

Perform Search

Audience: Citizen Developer

Skill Prerequisites: Understanding of Tokens

The "Perform Search" action in Plant an App allows users to execute a search based on specified criteria. This action leverages the Search Boost feature, enabling users to perform efficient searches tailored to specific behaviors.

Typical Use Cases

  • To perform a personalized search within a specific behavior defined in Search Boost.
  • To filter search results based on custom criteria.
  • To paginate large sets of search results efficiently.

Additional Resources

Input Parameter Reference

ParameterDescriptionSupports TokensDefaultRequired
Behavior IDThe Search Boost behavior ID to perform the search on. This can be identified in the Search Boost admin.YesN/AYes
Page SizeNumber of results to return per page.Yes10No
Page NumberSpecifies from which page to start retrieving the results.No1No
Search TermsTerms to execute the lookup on.YesN/AYes
FiltersOptional filters for refining search results.YesN/ANo

Output Parameters Reference

ParameterDescription
Results OutputA token name to store the JSON result with metadata and results.

Security

The search capabilities provide powerful tools for fetching and displaying data. However, it's crucial to ensure that data access is appropriately restricted based on user permissions to prevent unauthorized data visibility or leakage.

Examples

1. Basic Search Action

This example demonstrates performing a basic search using a specified behavior and search terms.

{
"Title": "Perform Search",
"ActionType": "PerformSearch",
"Parameters": {
"BehaviorId": "123456",
"PageSize": "10",
"PageNumber": "1",
"SearchTerms": [
{
"SearchTerm": "technology news"
}
],
"ResultsOutputTokenName": "SearchResults"
}
}

2. Search with Custom Filters

This example showcases performing a search with additional filters to narrow down results.

{
"Title": "Perform Search with Filters",
"ActionType": "PerformSearch",
"Parameters": {
"BehaviorId": "123456",
"PageSize": "10",
"PageNumber": "1",
"SearchTerms": [
{
"SearchTerm": "latest updates"
}
],
"Filters": [
{
"FilterName": "Category",
"FilterValues": "News\nTechnology"
}
],
"ResultsOutputTokenName": "FilteredSearchResults"
}
}

Executing a search with pagination to manage large data sets.

{
"Title": "Paginated Search",
"ActionType": "PerformSearch",
"Parameters": {
"BehaviorId": "123456",
"PageSize": "20",
"PageNumber": "2",
"SearchTerms": [
{
"SearchTerm": "innovations"
}
],
"ResultsOutputTokenName": "PaginatedSearchResults"
}
}

Conclusion

The "Perform Search" action provides a robust mechanism to conduct searches within the Plant an App platform efficiently. By utilizing behaviors, terms, and filters, users can customize their search operations to fit specific needs, ensuring relevant results are retrieved swiftly.

Revised 09/29/2025