@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.
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { BaseFilterTranslator } from "@mastra/core/vector/filter";
6
6
  import { MessageList } from "@mastra/core/agent";
7
7
  import { saveScorePayloadSchema } from "@mastra/core/evals";
8
8
  // package.json
9
- var version = "1.4.6-alpha.1";
9
+ var version = "1.4.6";
10
10
  // src/vector/filter.ts
11
11
  /**
12
12
  * Translator for ElasticSearch filter queries.
@@ -159,7 +159,7 @@ var ElasticSearchFilterTranslator = class extends BaseFilterTranslator {
159
159
  if (hasEndAnchor) processedRegex = processedRegex.substring(0, processedRegex.length - 1);
160
160
  let wildcardPattern = this.escapeWildcardMetacharacters(processedRegex);
161
161
  if (!hasStartAnchor) wildcardPattern = "*" + wildcardPattern;
162
- if (!hasEndAnchor) wildcardPattern = wildcardPattern + "*";
162
+ if (!hasEndAnchor) wildcardPattern += "*";
163
163
  return { wildcard: { [field]: { value: wildcardPattern } } };
164
164
  }
165
165
  return { regexp: { [field]: { value: regexValue } } };