@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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/docs/SKILL.md
CHANGED
|
@@ -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
|
|
6
|
+
version: "1.4.6"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
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
|
|
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
|
|
163
|
+
if (!hasEndAnchor) wildcardPattern += "*";
|
|
164
164
|
return { wildcard: { [field]: { value: wildcardPattern } } };
|
|
165
165
|
}
|
|
166
166
|
return { regexp: { [field]: { value: regexValue } } };
|