/**
  * @param ShopContextInterface $context
  * @param $term
  * @return BoolQuery
  */
 public function buildQuery(ShopContextInterface $context, $term)
 {
     $query = $this->decoratedQueryBuilder->buildQuery($context, $term);
     $matchQuery = new MultiMatchQuery(['attributes.properties.swag_es_product.my_name'], $term);
     $query->add($matchQuery, BoolQuery::SHOULD);
     return $query;
 }
 /**
  * {@inheritdoc}
  */
 public function handle(CriteriaPartInterface $criteriaPart, Criteria $criteria, Search $search, ShopContextInterface $context)
 {
     /** @var SearchTermCondition $criteriaPart */
     $query = $this->queryBuilder->buildQuery($context, $criteriaPart->getTerm());
     $search->addQuery($query);
 }