graphile-search 2.10.6 → 2.10.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/adapters/index.d.ts +8 -8
- package/adapters/index.js +7 -7
- package/codecs/index.d.ts +3 -3
- package/codecs/index.js +6 -6
- package/esm/adapters/index.d.ts +8 -8
- package/esm/adapters/index.js +3 -3
- package/esm/codecs/index.d.ts +3 -3
- package/esm/codecs/index.js +2 -2
- package/esm/index.d.ts +6 -6
- package/esm/index.js +2 -5
- package/esm/preset.d.ts +2 -2
- package/esm/preset.js +5 -5
- package/index.d.ts +6 -6
- package/index.js +6 -9
- package/package.json +5 -5
- package/preset.d.ts +2 -2
- package/preset.js +5 -5
package/adapters/index.d.ts
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Each adapter implements the SearchAdapter interface for a specific
|
|
5
5
|
* search algorithm. They are plain objects — not Graphile plugins.
|
|
6
6
|
*/
|
|
7
|
-
export { createTsvectorAdapter } from './tsvector';
|
|
8
|
-
export type { TsvectorAdapterOptions } from './tsvector';
|
|
9
|
-
export { createBm25Adapter } from './bm25';
|
|
10
7
|
export type { Bm25AdapterOptions, Bm25IndexInfo } from './bm25';
|
|
11
|
-
export {
|
|
12
|
-
export type { TrgmAdapterOptions } from './trgm';
|
|
13
|
-
export { createPgvectorAdapter } from './pgvector';
|
|
14
|
-
export type { PgvectorAdapterOptions } from './pgvector';
|
|
15
|
-
export { getChunksInfo } from './chunks';
|
|
8
|
+
export { createBm25Adapter } from './bm25';
|
|
16
9
|
export type { ChunksInfo } from './chunks';
|
|
10
|
+
export { getChunksInfo } from './chunks';
|
|
11
|
+
export type { PgvectorAdapterOptions } from './pgvector';
|
|
12
|
+
export { createPgvectorAdapter } from './pgvector';
|
|
13
|
+
export type { TrgmAdapterOptions } from './trgm';
|
|
14
|
+
export { createTrgmAdapter } from './trgm';
|
|
15
|
+
export type { TsvectorAdapterOptions } from './tsvector';
|
|
16
|
+
export { createTsvectorAdapter } from './tsvector';
|
package/adapters/index.js
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* search algorithm. They are plain objects — not Graphile plugins.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
10
|
-
var tsvector_1 = require("./tsvector");
|
|
11
|
-
Object.defineProperty(exports, "createTsvectorAdapter", { enumerable: true, get: function () { return tsvector_1.createTsvectorAdapter; } });
|
|
9
|
+
exports.createTsvectorAdapter = exports.createTrgmAdapter = exports.createPgvectorAdapter = exports.getChunksInfo = exports.createBm25Adapter = void 0;
|
|
12
10
|
var bm25_1 = require("./bm25");
|
|
13
11
|
Object.defineProperty(exports, "createBm25Adapter", { enumerable: true, get: function () { return bm25_1.createBm25Adapter; } });
|
|
14
|
-
var trgm_1 = require("./trgm");
|
|
15
|
-
Object.defineProperty(exports, "createTrgmAdapter", { enumerable: true, get: function () { return trgm_1.createTrgmAdapter; } });
|
|
16
|
-
var pgvector_1 = require("./pgvector");
|
|
17
|
-
Object.defineProperty(exports, "createPgvectorAdapter", { enumerable: true, get: function () { return pgvector_1.createPgvectorAdapter; } });
|
|
18
12
|
var chunks_1 = require("./chunks");
|
|
19
13
|
Object.defineProperty(exports, "getChunksInfo", { enumerable: true, get: function () { return chunks_1.getChunksInfo; } });
|
|
14
|
+
var pgvector_1 = require("./pgvector");
|
|
15
|
+
Object.defineProperty(exports, "createPgvectorAdapter", { enumerable: true, get: function () { return pgvector_1.createPgvectorAdapter; } });
|
|
16
|
+
var trgm_1 = require("./trgm");
|
|
17
|
+
Object.defineProperty(exports, "createTrgmAdapter", { enumerable: true, get: function () { return trgm_1.createTrgmAdapter; } });
|
|
18
|
+
var tsvector_1 = require("./tsvector");
|
|
19
|
+
Object.defineProperty(exports, "createTsvectorAdapter", { enumerable: true, get: function () { return tsvector_1.createTsvectorAdapter; } });
|
package/codecs/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* used by the search adapters. They run during the gather phase to discover
|
|
6
6
|
* types and indexes before the schema build phase.
|
|
7
7
|
*/
|
|
8
|
-
export { TsvectorCodecPlugin, TsvectorCodecPreset, createTsvectorCodecPlugin, } from './tsvector-codec';
|
|
9
|
-
export type { TsvectorCodecPluginOptions } from './tsvector-codec';
|
|
10
|
-
export { Bm25CodecPlugin, Bm25CodecPreset, bm25IndexStore, bm25ExtensionDetected, } from './bm25-codec';
|
|
11
8
|
export type { Bm25IndexInfo } from './bm25-codec';
|
|
9
|
+
export { Bm25CodecPlugin, Bm25CodecPreset, bm25ExtensionDetected, bm25IndexStore, } from './bm25-codec';
|
|
10
|
+
export type { TsvectorCodecPluginOptions } from './tsvector-codec';
|
|
11
|
+
export { createTsvectorCodecPlugin, TsvectorCodecPlugin, TsvectorCodecPreset, } from './tsvector-codec';
|
|
12
12
|
export { VectorCodecPlugin, VectorCodecPreset, } from './vector-codec';
|
package/codecs/index.js
CHANGED
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
* types and indexes before the schema build phase.
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.VectorCodecPreset = exports.VectorCodecPlugin = exports.
|
|
11
|
-
var tsvector_codec_1 = require("./tsvector-codec");
|
|
12
|
-
Object.defineProperty(exports, "TsvectorCodecPlugin", { enumerable: true, get: function () { return tsvector_codec_1.TsvectorCodecPlugin; } });
|
|
13
|
-
Object.defineProperty(exports, "TsvectorCodecPreset", { enumerable: true, get: function () { return tsvector_codec_1.TsvectorCodecPreset; } });
|
|
14
|
-
Object.defineProperty(exports, "createTsvectorCodecPlugin", { enumerable: true, get: function () { return tsvector_codec_1.createTsvectorCodecPlugin; } });
|
|
10
|
+
exports.VectorCodecPreset = exports.VectorCodecPlugin = exports.TsvectorCodecPreset = exports.TsvectorCodecPlugin = exports.createTsvectorCodecPlugin = exports.bm25IndexStore = exports.bm25ExtensionDetected = exports.Bm25CodecPreset = exports.Bm25CodecPlugin = void 0;
|
|
15
11
|
var bm25_codec_1 = require("./bm25-codec");
|
|
16
12
|
Object.defineProperty(exports, "Bm25CodecPlugin", { enumerable: true, get: function () { return bm25_codec_1.Bm25CodecPlugin; } });
|
|
17
13
|
Object.defineProperty(exports, "Bm25CodecPreset", { enumerable: true, get: function () { return bm25_codec_1.Bm25CodecPreset; } });
|
|
18
|
-
Object.defineProperty(exports, "bm25IndexStore", { enumerable: true, get: function () { return bm25_codec_1.bm25IndexStore; } });
|
|
19
14
|
Object.defineProperty(exports, "bm25ExtensionDetected", { enumerable: true, get: function () { return bm25_codec_1.bm25ExtensionDetected; } });
|
|
15
|
+
Object.defineProperty(exports, "bm25IndexStore", { enumerable: true, get: function () { return bm25_codec_1.bm25IndexStore; } });
|
|
16
|
+
var tsvector_codec_1 = require("./tsvector-codec");
|
|
17
|
+
Object.defineProperty(exports, "createTsvectorCodecPlugin", { enumerable: true, get: function () { return tsvector_codec_1.createTsvectorCodecPlugin; } });
|
|
18
|
+
Object.defineProperty(exports, "TsvectorCodecPlugin", { enumerable: true, get: function () { return tsvector_codec_1.TsvectorCodecPlugin; } });
|
|
19
|
+
Object.defineProperty(exports, "TsvectorCodecPreset", { enumerable: true, get: function () { return tsvector_codec_1.TsvectorCodecPreset; } });
|
|
20
20
|
var vector_codec_1 = require("./vector-codec");
|
|
21
21
|
Object.defineProperty(exports, "VectorCodecPlugin", { enumerable: true, get: function () { return vector_codec_1.VectorCodecPlugin; } });
|
|
22
22
|
Object.defineProperty(exports, "VectorCodecPreset", { enumerable: true, get: function () { return vector_codec_1.VectorCodecPreset; } });
|
package/esm/adapters/index.d.ts
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Each adapter implements the SearchAdapter interface for a specific
|
|
5
5
|
* search algorithm. They are plain objects — not Graphile plugins.
|
|
6
6
|
*/
|
|
7
|
-
export { createTsvectorAdapter } from './tsvector';
|
|
8
|
-
export type { TsvectorAdapterOptions } from './tsvector';
|
|
9
|
-
export { createBm25Adapter } from './bm25';
|
|
10
7
|
export type { Bm25AdapterOptions, Bm25IndexInfo } from './bm25';
|
|
11
|
-
export {
|
|
12
|
-
export type { TrgmAdapterOptions } from './trgm';
|
|
13
|
-
export { createPgvectorAdapter } from './pgvector';
|
|
14
|
-
export type { PgvectorAdapterOptions } from './pgvector';
|
|
15
|
-
export { getChunksInfo } from './chunks';
|
|
8
|
+
export { createBm25Adapter } from './bm25';
|
|
16
9
|
export type { ChunksInfo } from './chunks';
|
|
10
|
+
export { getChunksInfo } from './chunks';
|
|
11
|
+
export type { PgvectorAdapterOptions } from './pgvector';
|
|
12
|
+
export { createPgvectorAdapter } from './pgvector';
|
|
13
|
+
export type { TrgmAdapterOptions } from './trgm';
|
|
14
|
+
export { createTrgmAdapter } from './trgm';
|
|
15
|
+
export type { TsvectorAdapterOptions } from './tsvector';
|
|
16
|
+
export { createTsvectorAdapter } from './tsvector';
|
package/esm/adapters/index.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Each adapter implements the SearchAdapter interface for a specific
|
|
5
5
|
* search algorithm. They are plain objects — not Graphile plugins.
|
|
6
6
|
*/
|
|
7
|
-
export { createTsvectorAdapter } from './tsvector';
|
|
8
7
|
export { createBm25Adapter } from './bm25';
|
|
9
|
-
export { createTrgmAdapter } from './trgm';
|
|
10
|
-
export { createPgvectorAdapter } from './pgvector';
|
|
11
8
|
export { getChunksInfo } from './chunks';
|
|
9
|
+
export { createPgvectorAdapter } from './pgvector';
|
|
10
|
+
export { createTrgmAdapter } from './trgm';
|
|
11
|
+
export { createTsvectorAdapter } from './tsvector';
|
package/esm/codecs/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* used by the search adapters. They run during the gather phase to discover
|
|
6
6
|
* types and indexes before the schema build phase.
|
|
7
7
|
*/
|
|
8
|
-
export { TsvectorCodecPlugin, TsvectorCodecPreset, createTsvectorCodecPlugin, } from './tsvector-codec';
|
|
9
|
-
export type { TsvectorCodecPluginOptions } from './tsvector-codec';
|
|
10
|
-
export { Bm25CodecPlugin, Bm25CodecPreset, bm25IndexStore, bm25ExtensionDetected, } from './bm25-codec';
|
|
11
8
|
export type { Bm25IndexInfo } from './bm25-codec';
|
|
9
|
+
export { Bm25CodecPlugin, Bm25CodecPreset, bm25ExtensionDetected, bm25IndexStore, } from './bm25-codec';
|
|
10
|
+
export type { TsvectorCodecPluginOptions } from './tsvector-codec';
|
|
11
|
+
export { createTsvectorCodecPlugin, TsvectorCodecPlugin, TsvectorCodecPreset, } from './tsvector-codec';
|
|
12
12
|
export { VectorCodecPlugin, VectorCodecPreset, } from './vector-codec';
|
package/esm/codecs/index.js
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* used by the search adapters. They run during the gather phase to discover
|
|
6
6
|
* types and indexes before the schema build phase.
|
|
7
7
|
*/
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
8
|
+
export { Bm25CodecPlugin, Bm25CodecPreset, bm25ExtensionDetected, bm25IndexStore, } from './bm25-codec';
|
|
9
|
+
export { createTsvectorCodecPlugin, TsvectorCodecPlugin, TsvectorCodecPreset, } from './tsvector-codec';
|
|
10
10
|
export { VectorCodecPlugin, VectorCodecPreset, } from './vector-codec';
|
package/esm/index.d.ts
CHANGED
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
32
|
export { createUnifiedSearchPlugin } from './plugin';
|
|
33
|
-
export { UnifiedSearchPreset } from './preset';
|
|
34
33
|
export type { UnifiedSearchPresetOptions } from './preset';
|
|
35
|
-
export
|
|
36
|
-
export {
|
|
37
|
-
export type {
|
|
38
|
-
export {
|
|
39
|
-
export type {
|
|
34
|
+
export { UnifiedSearchPreset } from './preset';
|
|
35
|
+
export type { FilterApplyResult, ScoreSemantics, SearchableColumn, SearchAdapter, UnifiedSearchOptions, } from './types';
|
|
36
|
+
export type { Bm25AdapterOptions, PgvectorAdapterOptions, TrgmAdapterOptions, TsvectorAdapterOptions, } from './adapters';
|
|
37
|
+
export { createBm25Adapter, createPgvectorAdapter, createTrgmAdapter, createTsvectorAdapter, } from './adapters';
|
|
38
|
+
export type { Bm25IndexInfo, TsvectorCodecPluginOptions, } from './codecs';
|
|
39
|
+
export { Bm25CodecPlugin, Bm25CodecPreset, bm25IndexStore, createTsvectorCodecPlugin, TsvectorCodecPlugin, TsvectorCodecPreset, VectorCodecPlugin, VectorCodecPreset, } from './codecs';
|
|
40
40
|
export { createMatchesOperatorFactory, createTrgmOperatorFactories, } from './codecs/operator-factories';
|
package/esm/index.js
CHANGED
|
@@ -31,11 +31,8 @@
|
|
|
31
31
|
*/
|
|
32
32
|
// Core plugin
|
|
33
33
|
export { createUnifiedSearchPlugin } from './plugin';
|
|
34
|
-
// Preset
|
|
35
34
|
export { UnifiedSearchPreset } from './preset';
|
|
36
|
-
|
|
37
|
-
export {
|
|
38
|
-
// Codec plugins (tree-shakable — import only the codecs you need)
|
|
39
|
-
export { TsvectorCodecPlugin, TsvectorCodecPreset, createTsvectorCodecPlugin, Bm25CodecPlugin, Bm25CodecPreset, bm25IndexStore, VectorCodecPlugin, VectorCodecPreset, } from './codecs';
|
|
35
|
+
export { createBm25Adapter, createPgvectorAdapter, createTrgmAdapter, createTsvectorAdapter, } from './adapters';
|
|
36
|
+
export { Bm25CodecPlugin, Bm25CodecPreset, bm25IndexStore, createTsvectorCodecPlugin, TsvectorCodecPlugin, TsvectorCodecPreset, VectorCodecPlugin, VectorCodecPreset, } from './codecs';
|
|
40
37
|
// Operator factories for connection filter integration
|
|
41
38
|
export { createMatchesOperatorFactory, createTrgmOperatorFactories, } from './codecs/operator-factories';
|
package/esm/preset.d.ts
CHANGED
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
import type { GraphileConfig } from 'graphile-config';
|
|
20
|
-
import type { TsvectorAdapterOptions } from './adapters/tsvector';
|
|
21
20
|
import type { Bm25AdapterOptions } from './adapters/bm25';
|
|
22
|
-
import type { TrgmAdapterOptions } from './adapters/trgm';
|
|
23
21
|
import type { PgvectorAdapterOptions } from './adapters/pgvector';
|
|
22
|
+
import type { TrgmAdapterOptions } from './adapters/trgm';
|
|
23
|
+
import type { TsvectorAdapterOptions } from './adapters/tsvector';
|
|
24
24
|
/**
|
|
25
25
|
* Options for configuring which adapters are enabled and their settings.
|
|
26
26
|
*/
|
package/esm/preset.js
CHANGED
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
* };
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
import { createUnifiedSearchPlugin } from './plugin';
|
|
20
|
-
import { createTsvectorAdapter } from './adapters/tsvector';
|
|
21
19
|
import { createBm25Adapter } from './adapters/bm25';
|
|
22
|
-
import { createTrgmAdapter } from './adapters/trgm';
|
|
23
20
|
import { createPgvectorAdapter } from './adapters/pgvector';
|
|
24
|
-
import {
|
|
21
|
+
import { createTrgmAdapter } from './adapters/trgm';
|
|
22
|
+
import { createTsvectorAdapter } from './adapters/tsvector';
|
|
25
23
|
import { Bm25CodecPlugin } from './codecs/bm25-codec';
|
|
26
|
-
import { VectorCodecPlugin } from './codecs/vector-codec';
|
|
27
24
|
import { createMatchesOperatorFactory, createTrgmOperatorFactories } from './codecs/operator-factories';
|
|
25
|
+
import { TsvectorCodecPlugin } from './codecs/tsvector-codec';
|
|
26
|
+
import { VectorCodecPlugin } from './codecs/vector-codec';
|
|
27
|
+
import { createUnifiedSearchPlugin } from './plugin';
|
|
28
28
|
/**
|
|
29
29
|
* Creates a preset that includes the unified search plugin with all enabled adapters.
|
|
30
30
|
*/
|
package/index.d.ts
CHANGED
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
32
|
export { createUnifiedSearchPlugin } from './plugin';
|
|
33
|
-
export { UnifiedSearchPreset } from './preset';
|
|
34
33
|
export type { UnifiedSearchPresetOptions } from './preset';
|
|
35
|
-
export
|
|
36
|
-
export {
|
|
37
|
-
export type {
|
|
38
|
-
export {
|
|
39
|
-
export type {
|
|
34
|
+
export { UnifiedSearchPreset } from './preset';
|
|
35
|
+
export type { FilterApplyResult, ScoreSemantics, SearchableColumn, SearchAdapter, UnifiedSearchOptions, } from './types';
|
|
36
|
+
export type { Bm25AdapterOptions, PgvectorAdapterOptions, TrgmAdapterOptions, TsvectorAdapterOptions, } from './adapters';
|
|
37
|
+
export { createBm25Adapter, createPgvectorAdapter, createTrgmAdapter, createTsvectorAdapter, } from './adapters';
|
|
38
|
+
export type { Bm25IndexInfo, TsvectorCodecPluginOptions, } from './codecs';
|
|
39
|
+
export { Bm25CodecPlugin, Bm25CodecPreset, bm25IndexStore, createTsvectorCodecPlugin, TsvectorCodecPlugin, TsvectorCodecPreset, VectorCodecPlugin, VectorCodecPreset, } from './codecs';
|
|
40
40
|
export { createMatchesOperatorFactory, createTrgmOperatorFactories, } from './codecs/operator-factories';
|
package/index.js
CHANGED
|
@@ -31,27 +31,24 @@
|
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
-
exports.createTrgmOperatorFactories = exports.createMatchesOperatorFactory = exports.VectorCodecPreset = exports.VectorCodecPlugin = exports.
|
|
34
|
+
exports.createTrgmOperatorFactories = exports.createMatchesOperatorFactory = exports.VectorCodecPreset = exports.VectorCodecPlugin = exports.TsvectorCodecPreset = exports.TsvectorCodecPlugin = exports.createTsvectorCodecPlugin = exports.bm25IndexStore = exports.Bm25CodecPreset = exports.Bm25CodecPlugin = exports.createTsvectorAdapter = exports.createTrgmAdapter = exports.createPgvectorAdapter = exports.createBm25Adapter = exports.UnifiedSearchPreset = exports.createUnifiedSearchPlugin = void 0;
|
|
35
35
|
// Core plugin
|
|
36
36
|
var plugin_1 = require("./plugin");
|
|
37
37
|
Object.defineProperty(exports, "createUnifiedSearchPlugin", { enumerable: true, get: function () { return plugin_1.createUnifiedSearchPlugin; } });
|
|
38
|
-
// Preset
|
|
39
38
|
var preset_1 = require("./preset");
|
|
40
39
|
Object.defineProperty(exports, "UnifiedSearchPreset", { enumerable: true, get: function () { return preset_1.UnifiedSearchPreset; } });
|
|
41
|
-
// Adapters
|
|
42
40
|
var adapters_1 = require("./adapters");
|
|
43
|
-
Object.defineProperty(exports, "createTsvectorAdapter", { enumerable: true, get: function () { return adapters_1.createTsvectorAdapter; } });
|
|
44
41
|
Object.defineProperty(exports, "createBm25Adapter", { enumerable: true, get: function () { return adapters_1.createBm25Adapter; } });
|
|
45
|
-
Object.defineProperty(exports, "createTrgmAdapter", { enumerable: true, get: function () { return adapters_1.createTrgmAdapter; } });
|
|
46
42
|
Object.defineProperty(exports, "createPgvectorAdapter", { enumerable: true, get: function () { return adapters_1.createPgvectorAdapter; } });
|
|
47
|
-
|
|
43
|
+
Object.defineProperty(exports, "createTrgmAdapter", { enumerable: true, get: function () { return adapters_1.createTrgmAdapter; } });
|
|
44
|
+
Object.defineProperty(exports, "createTsvectorAdapter", { enumerable: true, get: function () { return adapters_1.createTsvectorAdapter; } });
|
|
48
45
|
var codecs_1 = require("./codecs");
|
|
49
|
-
Object.defineProperty(exports, "TsvectorCodecPlugin", { enumerable: true, get: function () { return codecs_1.TsvectorCodecPlugin; } });
|
|
50
|
-
Object.defineProperty(exports, "TsvectorCodecPreset", { enumerable: true, get: function () { return codecs_1.TsvectorCodecPreset; } });
|
|
51
|
-
Object.defineProperty(exports, "createTsvectorCodecPlugin", { enumerable: true, get: function () { return codecs_1.createTsvectorCodecPlugin; } });
|
|
52
46
|
Object.defineProperty(exports, "Bm25CodecPlugin", { enumerable: true, get: function () { return codecs_1.Bm25CodecPlugin; } });
|
|
53
47
|
Object.defineProperty(exports, "Bm25CodecPreset", { enumerable: true, get: function () { return codecs_1.Bm25CodecPreset; } });
|
|
54
48
|
Object.defineProperty(exports, "bm25IndexStore", { enumerable: true, get: function () { return codecs_1.bm25IndexStore; } });
|
|
49
|
+
Object.defineProperty(exports, "createTsvectorCodecPlugin", { enumerable: true, get: function () { return codecs_1.createTsvectorCodecPlugin; } });
|
|
50
|
+
Object.defineProperty(exports, "TsvectorCodecPlugin", { enumerable: true, get: function () { return codecs_1.TsvectorCodecPlugin; } });
|
|
51
|
+
Object.defineProperty(exports, "TsvectorCodecPreset", { enumerable: true, get: function () { return codecs_1.TsvectorCodecPreset; } });
|
|
55
52
|
Object.defineProperty(exports, "VectorCodecPlugin", { enumerable: true, get: function () { return codecs_1.VectorCodecPlugin; } });
|
|
56
53
|
Object.defineProperty(exports, "VectorCodecPreset", { enumerable: true, get: function () { return codecs_1.VectorCodecPreset; } });
|
|
57
54
|
// Operator factories for connection filter integration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphile-search",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.8",
|
|
4
4
|
"description": "Unified PostGraphile v5 search plugin — abstracts tsvector, BM25, pg_trgm, and pgvector behind a single adapter-based architecture with composite searchScore",
|
|
5
5
|
"author": "Constructive <developers@constructive.io>",
|
|
6
6
|
"homepage": "https://github.com/constructive-io/constructive",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^22.19.11",
|
|
36
36
|
"@types/pg": "^8.20.0",
|
|
37
|
-
"graphile-connection-filter": "^2.10.
|
|
38
|
-
"graphile-test": "^5.10.
|
|
37
|
+
"graphile-connection-filter": "^2.10.8",
|
|
38
|
+
"graphile-test": "^5.10.8",
|
|
39
39
|
"makage": "^0.3.0",
|
|
40
40
|
"pg": "^8.21.0",
|
|
41
|
-
"pgsql-test": "^5.9.
|
|
41
|
+
"pgsql-test": "^5.9.8"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@dataplan/pg": "1.0.3",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"hybrid-search",
|
|
66
66
|
"searchScore"
|
|
67
67
|
],
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "c20b6be96b39bf71c0e2df0f4b51e05deacd006b"
|
|
69
69
|
}
|
package/preset.d.ts
CHANGED
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
import type { GraphileConfig } from 'graphile-config';
|
|
20
|
-
import type { TsvectorAdapterOptions } from './adapters/tsvector';
|
|
21
20
|
import type { Bm25AdapterOptions } from './adapters/bm25';
|
|
22
|
-
import type { TrgmAdapterOptions } from './adapters/trgm';
|
|
23
21
|
import type { PgvectorAdapterOptions } from './adapters/pgvector';
|
|
22
|
+
import type { TrgmAdapterOptions } from './adapters/trgm';
|
|
23
|
+
import type { TsvectorAdapterOptions } from './adapters/tsvector';
|
|
24
24
|
/**
|
|
25
25
|
* Options for configuring which adapters are enabled and their settings.
|
|
26
26
|
*/
|
package/preset.js
CHANGED
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.UnifiedSearchPreset = UnifiedSearchPreset;
|
|
22
|
-
const plugin_1 = require("./plugin");
|
|
23
|
-
const tsvector_1 = require("./adapters/tsvector");
|
|
24
22
|
const bm25_1 = require("./adapters/bm25");
|
|
25
|
-
const trgm_1 = require("./adapters/trgm");
|
|
26
23
|
const pgvector_1 = require("./adapters/pgvector");
|
|
27
|
-
const
|
|
24
|
+
const trgm_1 = require("./adapters/trgm");
|
|
25
|
+
const tsvector_1 = require("./adapters/tsvector");
|
|
28
26
|
const bm25_codec_1 = require("./codecs/bm25-codec");
|
|
29
|
-
const vector_codec_1 = require("./codecs/vector-codec");
|
|
30
27
|
const operator_factories_1 = require("./codecs/operator-factories");
|
|
28
|
+
const tsvector_codec_1 = require("./codecs/tsvector-codec");
|
|
29
|
+
const vector_codec_1 = require("./codecs/vector-codec");
|
|
30
|
+
const plugin_1 = require("./plugin");
|
|
31
31
|
/**
|
|
32
32
|
* Creates a preset that includes the unified search plugin with all enabled adapters.
|
|
33
33
|
*/
|