---
title: "Returns all Memo Ids that match the query parameters."
method: POST
path: "/search/memo"
tags: ["search"]
---

# Returns all Memo Ids that match the query parameters.

`POST /search/memo`

## Query parameters

- `search_query` string, required
- `project_id` integer, required
- `search_content` boolean, required
- `page_number` integer, required
- `page_size` integer, required

## Request body

- BodySearchSearchMemos
  - `filter` FilterMemoColumns, required
    - `id` string, required
    - `items` union[], required
      - union
        - FilterExpressionMemoColumns
          - `id` string, required
          - `column` union, required
            - 'M_TITLE' | 'M_CONTENT' | 'M_STARRED' | 'M_USER_ID'
            - integer
          - `operator` union, required
            - 'ID_EQUALS' | 'ID_NOT_EQUALS'
            - 'NUMBER_EQUALS' | 'NUMBER_NOT_EQUALS' | 'NUMBER_GT' | 'NUMBER_LT' | 'NUMBER_GTE' | 'NUMBER_LTE'
            - 'STRING_CONTAINS' | 'STRING_EQUALS' | 'STRING_NOT_EQUALS' | 'STRING_STARTS_WITH' | 'STRING_ENDS_WITH'
            - 'ID_LIST_CONTAINS' | 'ID_LIST_NOT_CONTAINS'
            - 'IDLR_CONTAINS' | 'IDLR_NOT_CONTAINS' | 'IDLR_CONTAINS_RECURSIVE'
            - 'LIST_CONTAINS' | 'LIST_NOT_CONTAINS'
            - 'DATE_EQUALS' | 'DATE_GT' | 'DATE_LT' | 'DATE_GTE' | 'DATE_LTE'
            - 'BOOLEAN_EQUALS' | 'BOOLEAN_NOT_EQUALS'
          - `value` union, required
            - boolean
            - string
            - integer
            - string[]
            - array[]
              - …
        - FilterMemoColumns — recursive
    - `logic_operator` 'or' | 'and', required — This tells our filter how to combine multiple column expressions.
  - `sorts` SortMemoColumns[], required
    - `column` union, required
      - 'M_TITLE' | 'M_CONTENT' | 'M_STARRED' | 'M_USER_ID'
      - integer
    - `direction` 'asc' | 'desc', required

## Response `200`

Successful Response

- PaginatedElasticSearchHits
  - `hits` ElasticSearchHit[], required — The IDs, scores and (optional) highlights of Document search results on the requested page.
    - `id` integer, required — The ID of the Document
    - `score` number, nullable — The score of the Document that was found by a ES Query
    - `highlights` string[] — The highlights found within the document.
  - `total_results` integer, required — The total number of hits. Used for pagination.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uhh-lt/discourse-analysis-tool-suite-api/revisions/6fcf6b0bc28a/schema)
