@infrab4a/connect 3.9.0-beta.6 → 3.9.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1929,28 +1929,26 @@
1929
1929
  filter.push({ term: { tags: shop == exports.Shops.GLAMSHOP ? 'feminino' : 'masculino' } });
1930
1930
  }
1931
1931
  return [4 /*yield*/, this.adapter.query(this.index, {
1932
- body: {
1933
- size: size,
1934
- _source: fields,
1935
- query: {
1936
- bool: {
1937
- must: {
1938
- multi_match: {
1939
- query: "" + searchTerm,
1940
- fields: ['name', 'name.folded', 'name.search', 'description', 'brand'],
1941
- fuzziness: 2,
1942
- },
1932
+ size: size,
1933
+ _source: fields,
1934
+ query: {
1935
+ bool: {
1936
+ must: {
1937
+ multi_match: {
1938
+ query: "" + searchTerm,
1939
+ fields: ['name', 'name.folded', 'name.search', 'description', 'brand'],
1940
+ fuzziness: 2,
1943
1941
  },
1944
- should: {
1945
- match_phrase_prefix: {
1946
- 'name.search': {
1947
- query: "" + searchTerm,
1948
- slop: 10,
1949
- },
1942
+ },
1943
+ should: {
1944
+ match_phrase_prefix: {
1945
+ 'name.search': {
1946
+ query: "" + searchTerm,
1947
+ slop: 10,
1950
1948
  },
1951
1949
  },
1952
- filter: filter,
1953
1950
  },
1951
+ filter: filter,
1954
1952
  },
1955
1953
  },
1956
1954
  })];