Skip to main content
Ctrl+K

Plone REST API JavaScript Client

Overview

  • Quick Start
  • Endpoint actions
    • Actions
    • Add-ons
    • Aliases
    • Breadcrumbs
    • Comments
    • Content
    • Context Navigation
    • Control Panels
    • Copy and Move
    • Database
    • Email Notification
    • Email Send
    • Groups
    • History
    • Link Integrity
    • Locking
    • Login
    • Navigation
    • Navigation root
    • Principals
    • Querysources
    • Querystring
    • Querystring Search
    • Registry
    • Relations
    • Roles
    • Search
    • Site
    • Sources
    • System
    • Transactions
    • Translations
    • Types
    • Upgrade
    • Users
    • User schema
    • Vocabularies
    • Workflow
    • Working Copy
  • Miscelaneous considerations
  • Future improvements
  • Repository
  • Suggest edit
  • Open issue
  • .md

Querystring Search

Contents

  • Get Querystring Search
    • Query function
    • Hook
    • Parameters
  • Get Querystring Search Using POST request
    • Mutation function
    • Hook
    • Parameters

Querystring Search#

The @querystring-search endpoint returns search results that can be filtered on search criteria.

Get Querystring Search#

Query function#

Use the getQuerystringSearchQuery function to get the query for fetching the search results for a page.

Hook#

Use the useGetQuerystringSearch hook to get the search results for a page.

Parameters#

  • query: object[]

    • Required: Yes

    • An array of objects with the following fields:

      • i: string

        • Required: Yes

        • The index of the filter (the name of the field to which this filter is applied).

      • o: string

        • Required: Yes

        • The operator of the filter.

      • v: string[]

        • Required: Yes

        • The value of the filter.

  • b_start: string

    • Required: No

  • b_size: string

    • Required: No

  • limit: string

    • Required: No

  • sort_on: string

    • Required: No

  • sort_order: string

    • Required: No

  • fullobjects: boolean

    • Required: No

Get Querystring Search Using POST request#

Mutation function#

Use the postQuerystringSearchMutation function to get the mutation for fetching the search results for a page.

Hook#

Use the usePostQuerystringSearch hook to get the search results for a page.

Parameters#

  • data: object

    • Required: Yes

    • It can have the following fields:

      • query: object[]

      • Required: Yes

      • An array of objects with the following fields:

        • i: string

          • Required: Yes

          • The index of the filter (the name of the field to which this filter is applied).

        • o: string

          • Required: Yes

          • The operator of the filter.

        • v: array

          • Required: Yes

          • The value of the filter.

      • b_start: string

        • Required: No

        • The start index of the search results.

      • b_size: string

        • Required: No

        • The size of the search results.

      • limit: string

        • Required: No

        • The limit of the search results.

      • sort_on: string

        • Required: No

        • The field to sort on.

      • sort_order: string

        • Required: No

        • The order to sort on.

      • fullobjects: boolean

        • Required: No

        • Whether to return the full objects or not.

previous

Querystring

next

Registry

Contents
  • Get Querystring Search
    • Query function
    • Hook
    • Parameters
  • Get Querystring Search Using POST request
    • Mutation function
    • Hook
    • Parameters

By Plone Community

© Copyright The text and illustrations in this website are licensed by the Plone Foundation under a Creative Commons Attribution 4.0 International license.