Matthias
10/11/2021, 3:21 PM{
"name": "content-schemas",
"fields": [
{
"name": "typesenseSchema",
"type": "string",
"facet": false,
"index": true,
"optional": false
},
{
"name": "schema",
"type": "string",
"facet": false,
"index": true,
"optional": false
}
]
}
I'm getting an 404 (Request failed with HTTP code 404
) error but I can't seem to figure out whats wrong here. Thanks in advance!Joshua Hoover
10/11/2021, 3:46 PMJoshua Hoover
10/11/2021, 3:46 PMMatthias
10/11/2021, 3:47 PMlet schema: CollectionCreateSchema = {
name: collectionName,
fields: [
{
name: 'typesenseSchema',
type: 'string',
facet: false,
index: true,
optional: false,
},
{
name: 'schema',
type: 'string',
facet: false,
index: true,
optional: false,
},
],
};
try {
await typesense.collections().create(schema);
console.log('SETUP: Collection ' + collectionName + ' was created.');
} catch (error) {
console.log('SETUP: Error while creating schema collection. Error:', error);
}
Matthias
10/11/2021, 3:48 PMtypesense
is a Typesense.Client({...})Joshua Hoover
10/11/2021, 3:49 PMJoshua Hoover
10/11/2021, 3:49 PMJoshua Hoover
10/11/2021, 3:49 PMcurl "<http://localhost:8108/health>"
Matthias
10/11/2021, 3:50 PMMatthias
10/11/2021, 3:50 PMJoshua Hoover
10/11/2021, 3:51 PMMatthias
10/11/2021, 3:52 PMJoshua Hoover
10/11/2021, 3:55 PMMatthias
10/11/2021, 3:56 PMJoshua Hoover
10/11/2021, 3:57 PMJoshua Hoover
10/11/2021, 3:58 PMMatthias
10/11/2021, 3:58 PMMatthias
10/11/2021, 3:58 PMJoshua Hoover
10/11/2021, 3:58 PMJoshua Hoover
10/11/2021, 3:58 PMMatthias
10/11/2021, 3:59 PMMatthias
10/11/2021, 3:59 PMMatthias
10/11/2021, 4:00 PMMatthias
10/11/2021, 4:19 PMJoshua Hoover
10/11/2021, 4:30 PM