> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Wix Forum Schema for Wix Search ## Article: Wix Forum Schema for Wix Search ## Article Link: https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/other-apps/wix-forum/wix-forum-schema-for-wix-search.md ## Article Content: # Wix Forum Schema for Wix Search This article describes the Wix Forum product fields you can [search](https://www.wix.com/velo/reference/wix-search.html#search), [sort](https://www.wix.com/velo/reference/wix-search.WixSearchBuilder.html#ascending), [filter](https://www.wix.com/velo/reference/wix-search.html#filter), and [apply facets](https://www.wix.com/velo/reference/wix-search.WixSearchBuilder.html#facets) to when using the [wix-search API](https://www.wix.com/velo/reference/wix-search.html). To search Wix Forum posts and comments on your site, set the search document type as `"Forum/Content"`: ```javascript wixSearch.search(phrase) .documentType("Forum/Content") .find() .then( (results) => { // handle the results } ); ``` >**Note** > The Forum fields supported by wix-search are not identical to the fields in your site's [Forum/Posts](https://support.wix.com/en/article/velo-wix-forum-posts-collection-fields) and [Forum/Comments](https://support.wix.com/en/article/velo-wix-forum-comments-collection-fields) collections. The following fields appear in each matching search result [document](https://www.wix.com/velo/reference/wix-search/wixsearchresult/documents) when searching Wix Forum content: #### documentType **Description**: Document type that was searched. In this case, "Forum/Content". **Type**: String **Can search the content of this field**: No **Can facet**: No **Can sort**: No **Can filter**: No #### \_id **Description**: Post or comment ID. **Type**: String **Can search the content of this field**: No **Can facet**: No **Can sort**: No **Can filter**: No #### title **Description**: Post title. **Type**: String **Can search the content of this field**: Yes **Can facet**: No **Can sort**: No **Can filter**: No #### description **Description**: Text of the post or comment. **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. For comments, the URL points to the location of the comment on your post page. **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 image. **Type**: String **Can search the content of this field**: No **Can facet**: No **Can sort**: No **Can filter**: No #### contentType **Description**: Indicates whether the document is a post or a comment. Value can be "POST" or "COMMENT". **Type**: String **Can search the content of this field**: No **Can facet**: No **Can sort**: No **Can filter**: eq, ne You can use this field to filter search results so that only Forum posts or comments are returned. For example, the following code example demonstrates how to search only for Forum comments and not posts:  ```javascript wixSearch.search(phrase) .documentType("Forum/Posts") .eq("contentType", "COMMENT") .find() .then( (results) => { // handle the results } ); ``` #### postId **Description**: ID of the post the comment is associated with. Only relevant for comments. **Type**: String  **Can search the content of this field**: No **Can facet**: Yes **Can sort**: Yes **Can filter**: in, eq, ne, gt, ge, lt, le  #### ownerId **Description**: Unique ID of the site visitor who posted the post or comment. **Type**: String  **Can search the content of this field**: No **Can facet**: Yes **Can sort**: Yes **Can filter**: in, eq, ne, gt, ge, lt, le  #### categoryId **Description**: ID of the category associated with the post. **Type**: String **Can search the content of this field**: No **Can facet**: Yes **Can sort**: No **Can filter**: in, eq, ne, gt, ge, lt, le  #### hashTags **Description**: 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 #### lastActivityDate **Description**: Date and time of the last action performed on the post or comment. **Type**: Date **Can search the content of this field**: No **Can facet**: Yes **Can sort**: Yes **Can filter**: in, eq, ne, gt, ge, lt, le  #### likeCount **Description**: Number of likes the post or comment received. **Type**: Number **Can search the content of this field**: No **Can facet**: Yes **Can sort**: Yes **Can filter**: in, eq, ne, gt, ge, lt, le #### viewCount **Description**: Number of views the post received. **Type**: Number **Can search the content of this field**: No **Can facet**: Yes **Can sort**: Yes **Can filter**: in, eq, ne, gt, ge, lt, le #### totalComments **Description**: Number of comments the post received. **Type**: Number **Can search the content of this field**: No **Can facet**: Yes **Can sort**: Yes **Can filter**: in, eq, ne, gt, ge, lt, le #### postTitle **Description**: Title of the post. Only relevant for posts. **Type**: String **Can search the content of this field**: Yes **Can facet**: Yes **Can sort**: No **Can filter**: No #### categoryTitle **Description**: Title of the category. **Type**: String **Can search the content of this field**: No **Can facet**: Yes **Can sort**: Yes **Can filter**: in, eq, ne, gt, ge, lt, le #### parentId **Description**: ID of the parent comment. **Type**: String **Can search the content of this field**: No **Can facet**: Yes **Can sort**: Yes **Can filter**: in, eq, ne, gt, ge, lt, le #### createdDate **Description**: Date and time the comment or post was created. **Type**: Date **Can search the content of this field**: No **Can facet**: Yes **Can sort**: Yes **Can filter**: eq, ne, gt, ge, lt, le #### upvoteCount **Description**: Number of upvotes on the comment. **Type**: Number **Can search the content of this field**: No **Can facet**: Yes **Can sort**: Yes **Can filter**: in, eq, ne, gt, ge, lt, le #### downvoteCount **Description**: Number of downvotes on the comment. **Type**: Number **Can search the content of this field**: No **Can facet**: No **Can sort**: Yes **Can filter**: in, eq, ne, gt, ge, lt, le #### score **Description**: Number of upvotes minus the number of downvotes. **Type**: Number **Can search the content of this field**: No **Can facet**: No **Can sort**: Yes **Can filter**: in, eq, ne, gt, ge, lt, le #### editedDate **Description**: Date and time the comment or post was last edited. **Type**: Date **Can search the content of this field**: No **Can facet**: No **Can sort**: Yes **Can filter**: eq, ne, gt, ge, lt, le #### mentions **Description**: Users mentioned in the post. **Type**: Array of strings **Can search the content of this field**: No **Can facet**: No **Can sort**: No **Can filter**: No #### markedComments **Description**: IDs of the marked comments for the post (selected by forum admin or site owner). **Type**: String **Can search the content of this field**: No **Can facet**: No **Can sort**: No **Can filter**: No #### marked **Description**: Whether the comment is marked. **Type**: String **Can search the content of this field**: No **Can facet**: No **Can sort**: Yes **Can filter**: in, eq, ne, gt, ge, lt, le #### commentInteraction **Description**: Defines what interaction may be applied on the comment. **Type**: String **Can search the content of this field**: No **Can facet**: No **Can sort**: No **Can filter**: No #### images **Description**: Images from the post content. **Type**: Nested **Can search the content of this field**: No **Can filter**: in, eq, ne, gt, ge, lt, le **Nested fields**: #### images.id **Description**: WixMedia image ID (nested under `images`). **Type**: String **Can search the content of this field**: No **Can facet**: No **Can sort**: No **Can filter**: No #### images.url **Description**: URL of the image (nested under `images`). **Type**: String **Can search the content of this field**: No **Can facet**: No **Can sort**: No **Can filter**: No #### images.height **Description**: Original height of the image (nested under `images`). **Type**: String **Can search the content of this field**: No **Can facet**: No **Can sort**: No **Can filter**: No #### images.width **Description**: Original width of the image (nested under `images`). **Type**: String **Can search the content of this field**: No **Can facet**: No **Can sort**: No **Can filter**: No