MCPcopy
hub / github.com/Automattic/mongoose / _createSearchIndexes

Function _createSearchIndexes

lib/model.js:1141–1153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1139 return await this.ensureIndexes({ _automatic: true });
1140 };
1141 const _createSearchIndexes = async() => {
1142 const autoSearchIndex = utils.getOption(
1143 'autoSearchIndex',
1144 this.schema.options,
1145 conn.config,
1146 conn.base.options
1147 );
1148 if (!autoSearchIndex) {
1149 return;
1150 }
1151
1152 return await this.createSearchIndexes();
1153 };
1154 const _createCollection = async() => {
1155 let autoCreate = utils.getOption(
1156 'autoCreate',

Callers 1

model.jsFile · 0.85

Calls 1

createSearchIndexesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…