imports/api/elastic/server/taxons.js
/**
 * @description
 * Used by the collection hooks to update or insert a document after its
 * creation or modification in the collection
 */
@description
Used by the collection hooks to update or insert a document after its
creation or modification in the collection
@description Used by the collection hooks to update or insert a document after its creation or modification in the collection
function indexDoc (userId, doc, fieldNames, modifier, options) {
  if (doc.verified === true) {
    return bulkIndex([doc]);
  }
}
function indexDoc ( userId , doc , fieldNames , modifier , options ) { if ( doc . verified === true ) { return bulkIndex ( [ doc ] ) ; } }
@description
 Used by the collection hooks to update or insert a document after its
 creation or modification in the collection
@description Used by the collection hooks to update or insert a document after its creation or modification in the collection
// If the taxon is verified