Skip to content

Commit 17e3ccb

Browse files
authored
add exclude_fields to TypesenseConfig options (#320)
1 parent 7688ae8 commit 17e3ccb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/core-data/src/utils/Typesense.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ type TypesenseConfig = {
1515
port: number,
1616
protocol: string,
1717
query_by: string,
18-
sort_by: string
18+
sort_by: string,
19+
exclude_fields: string
1920
};
2021

2122
const ATTRIBUTE_DELIMITER = '.';
@@ -102,7 +103,8 @@ const createTypesenseAdapter = (config: TypesenseConfig, options = {}) => (
102103
additionalSearchParameters: {
103104
query_by: config.query_by,
104105
limit: config.limit || 250,
105-
sort_by: config.sort_by
106+
sort_by: config.sort_by,
107+
exclude_fields: config.exclude_fields
106108
},
107109
...options
108110
})

0 commit comments

Comments
 (0)