indexReview(review) {
    return client.index({
        index: 'libreviews',
        id: review.id,
        routing: review.thingID,
        body: {
          createdOn: review.createdOn,
          title: mlString.stripHTML(review.title),
          text: mlString.stripHTML(review.html),
          starRating: review.starRating,
          type: 'review',
          joined: {
            name: 'review',
            parent: review.thingID
          }
        }
      })
      .catch(error => debug.error({
        error
      }));
  }
// Index a new review. Returns a promise; logs errors
Index a new review. Returns a promise; logs errors
Index a new review . Returns a promise ; logs errors
indexReview(review) {
    return client.index({
        index: 'libreviews',
        id: review.id,
        routing: review.thingID,
        body: {
          createdOn: review.createdOn,
          title: mlString.stripHTML(review.title),
          text: mlString.stripHTML(review.html),
          starRating: review.starRating,
          type: 'review',
          joined: {
            name: 'review',
            parent: review.thingID
          }
        }
      })
      .catch(error => debug.error({
        error
      }));
  }
indexReview ( review ) { return client . index ( { index : 'libreviews' , id : review . id , routing : review . thingID , body : { createdOn : review . createdOn , title : mlString . stripHTML ( review . title ) , text : mlString . stripHTML ( review . html ) , starRating : review . starRating , type : 'review' , joined : { name : 'review' , parent : review . thingID } } } ) . catch ( error => debug . error ( { error } ) ) ; }
Index a new review.
Index a new review .