indexThing(thing) {
    return client.index({
        index: 'libreviews',
        id: thing.id,
        body: {
          createdOn: thing.createdOn,
          label: mlString.stripHTML(thing.label),
          aliases: mlString.stripHTMLFromArray(thing.aliases),
          description: mlString.stripHTML(thing.description),
          joined: 'thing',
          type: 'thing',
          urls: thing.urls,
          urlID: thing.urlID
        }
      })
      .catch(error => debug.error({
        error
      }));
  }
// Index a new review subject (thing). Returns a promise; logs errors
Index a new review subject (thing). Returns a promise; logs errors
Index a new review subject ( thing ) . Returns a promise ; logs errors
indexThing(thing) {
    return client.index({
        index: 'libreviews',
        id: thing.id,
        body: {
          createdOn: thing.createdOn,
          label: mlString.stripHTML(thing.label),
          aliases: mlString.stripHTMLFromArray(thing.aliases),
          description: mlString.stripHTML(thing.description),
          joined: 'thing',
          type: 'thing',
          urls: thing.urls,
          urlID: thing.urlID
        }
      })
      .catch(error => debug.error({
        error
      }));
  }
indexThing ( thing ) { return client . index ( { index : 'libreviews' , id : thing . id , body : { createdOn : thing . createdOn , label : mlString . stripHTML ( thing . label ) , aliases : mlString . stripHTMLFromArray ( thing . aliases ) , description : mlString . stripHTML ( thing . description ) , joined : 'thing' , type : 'thing' , urls : thing . urls , urlID : thing . urlID } } ) . catch ( error => debug . error ( { error } ) ) ; }
Index a new review subject (thing).
Index a new review subject ( thing ) .