文章 Update Search Result REST 端点

URLs

PUT api/v1/search/{id}.xml (or .json)

UPDATE a search result - update an existing document in the index.

请求参数

名称

类型

描述

必需

默认值

选项

Id

string

Id

是

Collapse

string

Collapse

否

Content

string

Content

否

ContentId

string

Unique Id for the content type

否

ContentType

string

Content Type

否

ContentUrl

string

Content Url

否

CreatedBy

string

Optional username for the user who created the content

否

Date

DateTime?

Date

否

EditedBy

string

Optional username for the user who last edited the content

否

GroupId

int?

Group Id

否

Rating

double?

Rating is a real number from 0 to 100 maintaining one decimal place: 000.0

否

Roles

string

List of role ids, separated by commas, that have permission to view the item.

否

SectionId

int?

Section Id

否

Tags

string

List of tags, separated by commas

否

ThreadId

int?

Thread Id

否

Title

string

Title

否

UserId

int?

UserId or Username is required when specifying a user.

否

Username

string

Either UserId or Username is required when specifying a user.

否

WikiId

int?

Wiki Id

否

CustomFields

RestSearchFields

Custom Fields

否

GuidId

Guid?

The GUID representing the content.

否

ApplicationId

Guid?

The GUID representing the application.

否

ContainerId

Guid?

The GUID representing the container.

否

Category

string

Category

否

IsContent

bool?

Is Content

否

IsApplication

bool?

Is Application

否

IsContainer

bool?

Is Container

否