文章 Create Search Result REST 端点

URLs

POST api/v1/search.xml (or .json)

CREATE a search result - add a document to the index.

请求参数

名称

类型

描述

必需

默认值

选项

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