-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Changes - Added support for document verticals (#156) ### Fixes - Upgraded @babel/traverse version to address a vulnerability in the package (#159)
- Loading branch information
Showing
19 changed files
with
382 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ SOFTWARE. | |
|
||
The following NPM package may be included in this product: | ||
|
||
- @yext/search-core@2.4.0 | ||
- @yext/search-core@2.5.0 | ||
|
||
This package contains the following license and notice below: | ||
|
||
|
@@ -134,7 +134,7 @@ THE SOFTWARE. | |
|
||
The following NPM package may be included in this product: | ||
|
||
- [email protected].6 | ||
- [email protected].8 | ||
|
||
This package contains the following license and notice below: | ||
|
||
|
@@ -280,7 +280,7 @@ terms above. | |
|
||
The following NPM package may be included in this product: | ||
|
||
- node-fetch@2.6.11 | ||
- node-fetch@2.7.0 | ||
|
||
This package contains the following license and notice below: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [DocumentResult](./search-headless.documentresult.md) > [documentScore](./search-headless.documentresult.documentscore.md) | ||
|
||
## DocumentResult.documentScore property | ||
|
||
The score calculated from whatever document search strategy was used. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
documentScore: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [DocumentResult](./search-headless.documentresult.md) | ||
|
||
## DocumentResult interface | ||
|
||
Details about the document and the document search algorithm | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare interface DocumentResult | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [documentScore](./search-headless.documentresult.documentscore.md) | number | The score calculated from whatever document search strategy was used. | | ||
| [segments](./search-headless.documentresult.segments.md) | [Segment](./search-headless.segment.md)<!-- -->\[\] | All the relevant segments extracted from the document. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [DocumentResult](./search-headless.documentresult.md) > [segments](./search-headless.documentresult.segments.md) | ||
|
||
## DocumentResult.segments property | ||
|
||
All the relevant segments extracted from the document. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
segments: Segment[]; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [Result](./search-headless.result.md) > [document](./search-headless.result.document.md) | ||
|
||
## Result.document property | ||
|
||
A relevant document associated with the result. Present for document verticals grouped by Document. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
document?: DocumentResult; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [Result](./search-headless.result.md) > [documents](./search-headless.result.documents.md) | ||
|
||
## Result.documents property | ||
|
||
All relevant documents associated with the result. Present for document verticals grouped by Entity. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
documents?: DocumentResult[]; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [Result](./search-headless.result.md) > [segment](./search-headless.result.segment.md) | ||
|
||
## Result.segment property | ||
|
||
A relevant segment associated with the result. Present for document verticals grouped by Segment. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
segment?: Segment; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [Segment](./search-headless.segment.md) | ||
|
||
## Segment interface | ||
|
||
A result produced by a document vertical. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare interface Segment | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [score](./search-headless.segment.score.md) | number | The similarity score of the segment from 0 to 1 | | ||
| [text](./search-headless.segment.text.md) | string | The value of the segment as plain text. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [Segment](./search-headless.segment.md) > [score](./search-headless.segment.score.md) | ||
|
||
## Segment.score property | ||
|
||
The similarity score of the segment from 0 to 1 | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
score: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [Segment](./search-headless.segment.md) > [text](./search-headless.segment.text.md) | ||
|
||
## Segment.text property | ||
|
||
The value of the segment as plain text. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
text: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.