@mastra/elasticsearch 1.4.6-alpha.1 → 1.4.6

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.
@@ -3,7 +3,7 @@ name: mastra-elasticsearch
3
3
  description: Documentation for @mastra/elasticsearch. Use when working with @mastra/elasticsearch APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/elasticsearch"
6
- version: "1.4.6-alpha.1"
6
+ version: "1.4.6"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.6-alpha.1",
2
+ "version": "1.4.6",
3
3
  "package": "@mastra/elasticsearch",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -7,7 +7,7 @@ let _mastra_core_vector_filter = require("@mastra/core/vector/filter");
7
7
  let _mastra_core_agent = require("@mastra/core/agent");
8
8
  let _mastra_core_evals = require("@mastra/core/evals");
9
9
  // package.json
10
- var version = "1.4.6-alpha.1";
10
+ var version = "1.4.6";
11
11
  // src/vector/filter.ts
12
12
  /**
13
13
  * Translator for ElasticSearch filter queries.
@@ -160,7 +160,7 @@ var ElasticSearchFilterTranslator = class extends _mastra_core_vector_filter.Bas
160
160
  if (hasEndAnchor) processedRegex = processedRegex.substring(0, processedRegex.length - 1);
161
161
  let wildcardPattern = this.escapeWildcardMetacharacters(processedRegex);
162
162
  if (!hasStartAnchor) wildcardPattern = "*" + wildcardPattern;
163
- if (!hasEndAnchor) wildcardPattern = wildcardPattern + "*";
163
+ if (!hasEndAnchor) wildcardPattern += "*";
164
164
  return { wildcard: { [field]: { value: wildcardPattern } } };
165
165
  }
166
166
  return { regexp: { [field]: { value: regexValue } } };