Schema for Wix Search
This article describes the Wix Blog fields you can search, sort, filter, and apply facets to when using the wix-search API.
To search Wix Blog posts on your site, set the search document type as ”Blog/Posts"
:
javascript | Copy CodewixSearch.search(phrase).documentType(“Blog/Posts").find().then( (results) => {// handle the results} );
Notes The Blog fields supported by wix-search are not identical to the fields in your site's Blog/Posts collection
The following fields appear in each matching search result document when searching Wix Blog services:
documentType
Description: Document type that was searched. In this case, “Blog/Posts”.
Type: String
Can search the content of this field: No
Can facet: No
Can sort: No
Can filter: No
_id
Description: The ID of the post.
Type: String
Can search the content of this field: No
Can facet: No
Can sort: No
Can filter: No
title
Description: The title of the post.
Type: String
Can search the content of this field: Yes
Can facet: No
Can sort: No
Can filter: No
description
Description: Description of the post.
Type: String
Can search the content of this field: Yes
Can facet: No
Can sort: No
Can filter: No
url
Description: Relative URL of the post page on your site.
Type: String
Can search the content of this field: No
Can facet: No
Can sort: No
Can filter: No
image
Description: File source of the post’s cover image.
Type: String
Can search the content of this field: No
Can facet: No
Can sort: No
Can filter: No
hashTags
Description: List of hashtags in the post.
Type: Array of Strings
Can search the content of this field: No
Can facet: Yes
Can sort: No
Can filter: hasSome, hasAll
tags
Description: List of tags in the post.
Type: Array of Strings
Can search the content of this field: Yes
Can facet: Yes
Can sort: Yes
Can filter: hasSome, hasAll
tagIds
Description: List of tag IDs in the post.
Type: Array of Strings
Can search the content of this field: No
Can facet: Yes
Can sort: Yes
Can filter: hasSome, hasAll
publishDate
Description: Date and time the post was originally published.
Type: Date
Can search the content of this field: No
Can facet: No
Can sort: Yes
Can filter: in, eq, ne, gt, ge, lt, le
Was this helpful?