@infrab4a/connect 4.3.6 → 4.3.8

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.
package/index.cjs.js CHANGED
@@ -2602,21 +2602,37 @@ class ProductsIndex {
2602
2602
  _source: fields,
2603
2603
  query: {
2604
2604
  bool: {
2605
- must: {
2606
- multi_match: {
2607
- query: `${searchTerm}`,
2608
- fields: ['name', 'name.folded', 'name.search', 'description', 'brand'],
2609
- fuzziness: 2,
2605
+ should: [
2606
+ {
2607
+ multi_match: {
2608
+ query: `${searchTerm}`,
2609
+ fields: ['name', 'name.folded', 'name.search'],
2610
+ operator: 'AND',
2611
+ },
2610
2612
  },
2611
- },
2612
- should: {
2613
- match_phrase_prefix: {
2614
- 'name.search': {
2613
+ {
2614
+ match_phrase: {
2615
+ name: {
2616
+ query: `${searchTerm}`,
2617
+ boost: 2,
2618
+ },
2619
+ },
2620
+ },
2621
+ {
2622
+ match: {
2623
+ brand: {
2624
+ query: `${searchTerm}`,
2625
+ },
2626
+ },
2627
+ },
2628
+ {
2629
+ multi_match: {
2615
2630
  query: `${searchTerm}`,
2616
- slop: 10,
2631
+ fields: ['name', 'name.folded', 'name.search'],
2632
+ operator: 'OR',
2617
2633
  },
2618
2634
  },
2619
- },
2635
+ ],
2620
2636
  filter,
2621
2637
  },
2622
2638
  },
package/index.esm.js CHANGED
@@ -2578,21 +2578,37 @@ class ProductsIndex {
2578
2578
  _source: fields,
2579
2579
  query: {
2580
2580
  bool: {
2581
- must: {
2582
- multi_match: {
2583
- query: `${searchTerm}`,
2584
- fields: ['name', 'name.folded', 'name.search', 'description', 'brand'],
2585
- fuzziness: 2,
2581
+ should: [
2582
+ {
2583
+ multi_match: {
2584
+ query: `${searchTerm}`,
2585
+ fields: ['name', 'name.folded', 'name.search'],
2586
+ operator: 'AND',
2587
+ },
2586
2588
  },
2587
- },
2588
- should: {
2589
- match_phrase_prefix: {
2590
- 'name.search': {
2589
+ {
2590
+ match_phrase: {
2591
+ name: {
2592
+ query: `${searchTerm}`,
2593
+ boost: 2,
2594
+ },
2595
+ },
2596
+ },
2597
+ {
2598
+ match: {
2599
+ brand: {
2600
+ query: `${searchTerm}`,
2601
+ },
2602
+ },
2603
+ },
2604
+ {
2605
+ multi_match: {
2591
2606
  query: `${searchTerm}`,
2592
- slop: 10,
2607
+ fields: ['name', 'name.folded', 'name.search'],
2608
+ operator: 'OR',
2593
2609
  },
2594
2610
  },
2595
- },
2611
+ ],
2596
2612
  filter,
2597
2613
  },
2598
2614
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.3.6",
3
+ "version": "4.3.8",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -9,5 +9,6 @@ export declare class ShopSettings extends BaseModel<ShopSettings> {
9
9
  descriptionMeta?: string;
10
10
  titleMeta?: string;
11
11
  imageMeta?: string;
12
+ hasMultiples?: boolean;
12
13
  static get identifiersFields(): GenericIdentifier[];
13
14
  }