halo
  1. IndexV1alpha1Public
halo
public
  • all
  • console
  • extension
  • public
  • uc
  • CategoryV1alpha1Public
    • queryCategories
      GET
    • queryCategoryByName
      GET
    • queryPostsByCategoryName
      GET
  • PostV1alpha1Public
    • queryPosts
      GET
    • queryPostByName
      GET
    • queryPostNavigationByName
      GET
  • SinglePageV1alpha1Public
    • querySinglePages
      GET
    • querySinglePageByName
      GET
  • TagV1alpha1Public
    • queryTags
      GET
    • queryTagByName
      GET
    • queryPostsByTagName
      GET
  • CommentV1alpha1Public
    • ListComments_1
      GET
    • CreateComment_1
      POST
    • GetComment
      GET
    • ListCommentReplies
      GET
    • CreateReply_1
      POST
  • IndexV1alpha1Public
    • IndicesSearch
      POST
  • MenuV1alpha1Public
    • queryPrimaryMenu
      GET
    • queryMenuByName
      GET
  • SystemV1alpha1Public
    • queryStats
      GET
  • MetricsV1alpha1Public
    • count
      POST
    • downvote
      POST
    • upvote
      POST
  • NotificationV1alpha1Public
    • Unsubscribe
  • PluginV1alpha1Public
    • queryPluginAvailableByName
  • ThumbnailV1alpha1Public
    • GetThumbnailByUri
  1. IndexV1alpha1Public

IndicesSearch

POST
/apis/api.halo.run/v1alpha1/indices/-/search
Search indices.

请求参数

Header 参数

Body 参数application/json

示例
{
    "annotations": {
        "property1": "string",
        "property2": "string"
    },
    "filterExposed": true,
    "filterPublished": true,
    "filterRecycled": true,
    "highlightPostTag": "string",
    "highlightPreTag": "string",
    "includeCategoryNames": [
        "string"
    ],
    "includeOwnerNames": [
        "string"
    ],
    "includeTagNames": [
        "string"
    ],
    "includeTypes": [
        "string"
    ],
    "keyword": "string",
    "limit": 1
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://192.168.80.101:8090/apis/api.halo.run/v1alpha1/indices/-/search' \
--header 'Authorization: {{authorization}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "annotations": {
        "property1": "string",
        "property2": "string"
    },
    "filterExposed": true,
    "filterPublished": true,
    "filterRecycled": true,
    "highlightPostTag": "string",
    "highlightPreTag": "string",
    "includeCategoryNames": [
        "string"
    ],
    "includeOwnerNames": [
        "string"
    ],
    "includeTagNames": [
        "string"
    ],
    "includeTypes": [
        "string"
    ],
    "keyword": "string",
    "limit": 1
}'

返回响应

🟢200成功
*/*
default response
Body

示例
{
    "hits": [
        {
            "annotations": {
                "property1": "string",
                "property2": "string"
            },
            "categories": [
                "string"
            ],
            "content": "string",
            "creationTimestamp": "2019-08-24T14:15:22Z",
            "description": "string",
            "exposed": true,
            "id": "string",
            "metadataName": "string",
            "ownerName": "string",
            "permalink": "string",
            "published": true,
            "recycled": true,
            "tags": [
                "string"
            ],
            "title": "string",
            "type": "string",
            "updateTimestamp": "2019-08-24T14:15:22Z"
        }
    ],
    "keyword": "string",
    "limit": 0,
    "processingTimeMillis": 0,
    "total": 0
}
修改于 2025-09-17 17:13:00
上一页
CreateReply_1
下一页
queryPrimaryMenu
Built with