Skip to content

Commit 5b8d2dc

Browse files
feat(search): add doc for search extension result
SEARCH-511
1 parent 3196365 commit 5b8d2dc

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

docs/javascript/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ And `configuration` is an object that allows these properties:
8686
| `targets.SEARCH` | Target id for the search page. | [Documentation](./capabilities#search) |
8787
| `targets.SEARCH_BOX` | Target id for the search box. | [Documentation](./capabilities#search-box) |
8888
| `targets.SEARCH_CUSTOM_METADATA` | Target id for search custom metadata. | [Documentation](./capabilities#search-custom-metadata) |
89+
| `targets.SEARCH_EXTENSION_RESULT` | Target id for result coming from search extensions. For further information, please refer to the [search SDK documentation](https://docs.lumapps.com/docs/ls/content/7922416882680847/docs/devportal-devportal-landing/devportal-l7646654821110653/devportal-l18963592772091442/devportal-l2842548453481841/devportal-l5187611046361645). | [Documentation](./capabilities#search-extension-result) |
8990
| `targets.SEARCH_RESULT_ICON` | Target id for icons of the search result page and quick search. | [Documentation](./capabilities#search-result-icon) |
9091
| `targets.SEARCH_TAB` | Target id for search tab. | [Documentation](./capabilities#search-tab) |
9192
| `targets.SETTINGS` | Target id for the settings menu. | [Documentation](./capabilities#settings) |
Loading

docs/javascript/capabilities.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,25 @@ Target that allows customizing the search custom metadata.
570570
| Disable | No compatibility. |
571571
| Changing text | No compatibility. |
572572

573+
### Search extension result
574+
575+
Target that allows replacing search results coming from any search extension.
576+
577+
![Search extension results](./assets/search-extension-result-doc.png "Search extension result")
578+
579+
#### Compatibility
580+
581+
| | |
582+
| ------------- | -------------------------------------- |
583+
| Target ID | `search-extension-result` |
584+
| Description | Target the search extension result. |
585+
| Placements | Compatible with placements: `REPLACE`. |
586+
| Disable | No compatibility. |
587+
| Changing text | No compatibility. |
588+
589+
**Note:** Using `context` it is possible to retrieve the full data of the search result.
590+
This, combined with RawHTML component, allows a full customization of the extension search result.
591+
573592
### Search result icon
574593

575594
Target that allows customizing icons of the search results of both the search page and quick search.

0 commit comments

Comments
 (0)