chore(deps): update dependency flexsearch to ^0.8.0 #65

Open
renovate-bot wants to merge 1 commit from renovate/flexsearch-0.x into master
Member

This PR contains the following updates:

Package Change Age Confidence
flexsearch ^0.6 -> ^0.8.0 age confidence

Release Notes

nextapps-de/flexsearch (flexsearch)

v0.8.205

Compare Source

v0.8.204

Compare Source

v0.8.203

Compare Source

v0.8.202

Compare Source

v0.8.201

Compare Source

v0.8.200

Compare Source

v0.8.167

Compare Source

v0.8.166

Compare Source

v0.8.165

Compare Source

v0.8.164

Compare Source

v0.8.163

Compare Source

v0.8.162

Compare Source

v0.8.161

Compare Source

v0.8.160

Compare Source

v0.8.158

Compare Source

v0.8.157

Compare Source

v0.8.154

Compare Source

v0.8.153

Compare Source

v0.8.152

Compare Source

v0.8.151

Compare Source

v0.8.149

Compare Source

v0.8.148

Compare Source

v0.8.147

Compare Source

v0.8.143

Compare Source

v0.8.142

Compare Source

v0.8.141

Compare Source

v0.8.140

Compare Source

v0.8.138

Compare Source

v0.8.135

Compare Source

v0.8.132

Compare Source

v0.8.117

Compare Source

v0.8.105

Compare Source

v0.8.103

Compare Source

v0.8.1

Compare Source

  • Resolver Support for Documents
  • Asynchronous Runtime Balancer, new option priority
  • Export/Import Worker Indexes + Document Worker, new extern config options export and import
  • Improved interoperability of the different build packages, including source folder
  • Support custom filter function for encoder (stop-word filter)

v0.8.0

Compare Source

  • Persistent indexes support for: IndexedDB (Browser), Redis, SQLite, Postgres, MongoDB, Clickhouse
  • Enhanced language customization via the new Encoder class
  • Result Highlighting
  • Query performance achieve results up to 4.5 times faster compared to the previous generation v0.7.x by also improving the quality of results
  • Enhanced support for larger indexes or larger result sets
  • Improved offset and limit processing achieve up to 100 times faster traversal performance through large datasets
  • Support for larger In-Memory index with extended key size (the defaults maximum keystore limit is: 2^24)
  • Greatly enhanced performance of the whole text encoding pipeline
  • Improved indexing of numeric content (Triplets)
  • Intermediate result sets and Resolver
  • Basic Resolver: and, or, xor, not, limit, offset, boost, resolve
  • Improved charset collection
  • New charset preset soundex which further reduces memory consumption by also increasing "fuzziness"
  • Performance gain when polling tasks to the index by using "Event-Loop-Caches"
  • Up to 100 times faster deletion/replacement when not using the additional "fastupdate" register
  • Regex Pre-Compilation (transforms hundreds of regex rules into just a few)
  • Extended support for multiple tags (DocumentIndex)
  • Custom Fields ("Virtual Fields")
  • Custom Filter
  • Custom Score Function
  • Added French language preset (stop-word filter, stemmer)
  • Enhanced Worker Support
  • Export / Import index in chunks
  • Improved Build System + Bundler (Supported: CommonJS, ESM, Global Namespace), also the import of language packs are now supported for Node.js
  • Full covering index.d.ts type definitions
  • Fast-Boot Serialization optimized for Server-Side-Rendering (PHP, Python, Ruby, Rust, Java, Go, Node.js, ...)

v0.7.43

Compare Source

v0.7.42

Compare Source

v0.7.41

Compare Source

v0.7.40

Compare Source

v0.7.39

Compare Source

v0.7.34

Compare Source

v0.7.33

Compare Source

v0.7.31

Compare Source

v0.7.21

Compare Source

v0.7.11

Compare Source

v0.7.3

Compare Source

v0.7.2

Compare Source

v0.7.1

Compare Source

v0.7.0

Compare Source

  • Bidirectional Context (the order of words can now vary, does not increase memory when using bidirectional context)
  • New memory-friendly strategy for indexes (switchable, saves up to 50% of memory for each index, slightly decrease performance)
  • Better scoring calculation (one of the biggest concerns of the old implementation was that the order of arrays processed in the intersection has affected the order of relevance in the final result)
  • Fix resolution (the resolution in the old implementation was not fully stretched through the whole range in some cases)
  • Skip words (optionally, automatically skip words from the context chain which are too short)
  • Hugely improves performance of long queries (up to 450x faster!) and also memory allocation (up to 250x less memory)
  • New fast-update strategy (optionally, hugely improves performance of all updates and removals of indexed contents up to 2850x)
  • Improved auto-balanced cache (keep and expire cache by popularity)
  • Append contents to already existing entries (already indexed documents or contents)
  • New method "contain" to check if an ID was already indexed
  • Access documents directly from internal store (read/write)
  • Suggestions are hugely improved, falls back from context search all the way down to single term match
  • Document descriptor has now array support (optionally adds array entries via the new append under the hood to provide a unique relevance context for each entry)
  • Document storage handler gets improved
  • Results from document index now grouped by field (this is one of the few bigger breaking changes which needs migrations of your old code)
  • Boolean search has a new concept (use in combination of the new result structure)
  • Node.js Worker Threads
  • Improved default latin encoders
  • New parallelization model and workload distribution
  • Improved Export/Import
  • Tag Search
  • Offset pagination
  • Enhanced Field Search
  • Improved sorting by relevance (score)
  • Added Context Scoring (context index has its own resolution)
  • Enhanced charset normalization
  • Improved bundler (support for inline WebWorker)

These features have been removed:

  • Where-Clause
  • Index Information index.info()
  • Paging Cursor (was replaced by offset)
Migration Quick Overview

The "async" options was removed, instead you can call each method in its async version, e.g. index.addAsync or index.searchAsync.

Define document fields as object keys is not longer supported due to the unification of all option payloads.

A full configuration example for a context-based index:

var index = new Index({
    tokenize: "strict",
    resolution: 9,
    minlength: 3,
    optimize: true,
    fastupdate: true,
    cache: 100,
    context: {
        depth: 1,
        resolution: 3,
        bidirectional: true
    }
});

The resolution could be set also for the contextual index.

A full configuration example for a document based index:

const index = new Document({
    tokenize: "forward",
    optimize: true,
    resolution: 9,
    cache: 100,
    worker: true,
    document: {
        id: "id",
        tag: "tag",
        store: [
            "title", "content"
        ],
        index: [{
            field: "title",
            tokenize: "forward",
            optimize: true,
            resolution: 9
        },{
            field:  "content",
            tokenize: "strict",
            optimize: true,
            resolution: 9,
            minlength: 3,
            context: {
                depth: 1,
                resolution: 3
            }
        }]
    }
});

A full configuration example for a document search:

index.search({
    enrich: true,
    bool: "and",
    tag: ["cat", "dog"],
    index: [{
        field: "title",
        query: "some query",
        limit: 100,
        suggest: true
    },{
        field: "content",
        query: "same or other query",
        limit: 100,
        suggest: true
    }]
});
Where Clause Replacement

Old Syntax:

const result = index.where({
    cat: "comedy",
    year: "2018"
});

Equivalent Syntax (0.7.x):

const data = Object.values(index.store);

The line above retrieves data from the document store (just useful when not already available in your runtime).

const result = data.filter(function(item){ 
    return item.cat === "comedy" && item.year === "2018";
});

Also considering using the Tag-Search feature, which partially replaces the Where-Clause with a huge performance boost.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [flexsearch](https://github.com/nextapps-de/flexsearch) | [`^0.6` -> `^0.8.0`](https://renovatebot.com/diffs/npm/flexsearch/0.6.32/0.8.205) | [![age](https://developer.mend.io/api/mc/badges/age/npm/flexsearch/0.8.205?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/flexsearch/0.6.32/0.8.205?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>nextapps-de/flexsearch (flexsearch)</summary> ### [`v0.8.205`](https://github.com/nextapps-de/flexsearch/compare/1f75f5f9d9b6f0cc337c0033e0b4ee3a7f63c29f...35fd7c80c286be30b5d94fad54a672e95823d758) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/1f75f5f9d9b6f0cc337c0033e0b4ee3a7f63c29f...35fd7c80c286be30b5d94fad54a672e95823d758) ### [`v0.8.204`](https://github.com/nextapps-de/flexsearch/compare/82eed5dc3eabf16797250fdc9908349efedf0059...1f75f5f9d9b6f0cc337c0033e0b4ee3a7f63c29f) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/82eed5dc3eabf16797250fdc9908349efedf0059...1f75f5f9d9b6f0cc337c0033e0b4ee3a7f63c29f) ### [`v0.8.203`](https://github.com/nextapps-de/flexsearch/compare/db56fa1070d1a681e2cdbecd9f3c4acb423896ed...82eed5dc3eabf16797250fdc9908349efedf0059) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/db56fa1070d1a681e2cdbecd9f3c4acb423896ed...82eed5dc3eabf16797250fdc9908349efedf0059) ### [`v0.8.202`](https://github.com/nextapps-de/flexsearch/compare/809119b492918b07d757b1983dd84091c71db098...db56fa1070d1a681e2cdbecd9f3c4acb423896ed) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/809119b492918b07d757b1983dd84091c71db098...db56fa1070d1a681e2cdbecd9f3c4acb423896ed) ### [`v0.8.201`](https://github.com/nextapps-de/flexsearch/compare/103f617ad5ce4a8c6d528454abcdb5ed2c77b4aa...809119b492918b07d757b1983dd84091c71db098) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/103f617ad5ce4a8c6d528454abcdb5ed2c77b4aa...809119b492918b07d757b1983dd84091c71db098) ### [`v0.8.200`](https://github.com/nextapps-de/flexsearch/compare/e9c26f06b404fc716b35f98e1d7f86e25f83fdb2...103f617ad5ce4a8c6d528454abcdb5ed2c77b4aa) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/e9c26f06b404fc716b35f98e1d7f86e25f83fdb2...103f617ad5ce4a8c6d528454abcdb5ed2c77b4aa) ### [`v0.8.167`](https://github.com/nextapps-de/flexsearch/compare/6d46dce49168f82d1b8f2a1dc632a8fcb8c63c8e...e9c26f06b404fc716b35f98e1d7f86e25f83fdb2) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/6d46dce49168f82d1b8f2a1dc632a8fcb8c63c8e...e9c26f06b404fc716b35f98e1d7f86e25f83fdb2) ### [`v0.8.166`](https://github.com/nextapps-de/flexsearch/compare/4a59a9a02747829ad64bffc08a2680343fdfb777...6d46dce49168f82d1b8f2a1dc632a8fcb8c63c8e) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/4a59a9a02747829ad64bffc08a2680343fdfb777...6d46dce49168f82d1b8f2a1dc632a8fcb8c63c8e) ### [`v0.8.165`](https://github.com/nextapps-de/flexsearch/compare/9053b2c83400f61b00a5797999032fd3c8a9645b...4a59a9a02747829ad64bffc08a2680343fdfb777) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/9053b2c83400f61b00a5797999032fd3c8a9645b...4a59a9a02747829ad64bffc08a2680343fdfb777) ### [`v0.8.164`](https://github.com/nextapps-de/flexsearch/compare/3769259c53fcf82d21777ad1585917333f491fa6...9053b2c83400f61b00a5797999032fd3c8a9645b) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/3769259c53fcf82d21777ad1585917333f491fa6...9053b2c83400f61b00a5797999032fd3c8a9645b) ### [`v0.8.163`](https://github.com/nextapps-de/flexsearch/compare/c4929b9106d0f8e20544fbb37be8142536cc470d...3769259c53fcf82d21777ad1585917333f491fa6) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/c4929b9106d0f8e20544fbb37be8142536cc470d...3769259c53fcf82d21777ad1585917333f491fa6) ### [`v0.8.162`](https://github.com/nextapps-de/flexsearch/compare/3bd342e74c1e7de3a9b5d69edefa1b4c5c56d2b5...c4929b9106d0f8e20544fbb37be8142536cc470d) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/3bd342e74c1e7de3a9b5d69edefa1b4c5c56d2b5...c4929b9106d0f8e20544fbb37be8142536cc470d) ### [`v0.8.161`](https://github.com/nextapps-de/flexsearch/compare/94fe3aa5a08b3acc677094f226241b0a049e0167...3bd342e74c1e7de3a9b5d69edefa1b4c5c56d2b5) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/94fe3aa5a08b3acc677094f226241b0a049e0167...3bd342e74c1e7de3a9b5d69edefa1b4c5c56d2b5) ### [`v0.8.160`](https://github.com/nextapps-de/flexsearch/compare/b70d639180909bd1b6f55d5afcdbf4cd383c4518...94fe3aa5a08b3acc677094f226241b0a049e0167) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/b70d639180909bd1b6f55d5afcdbf4cd383c4518...94fe3aa5a08b3acc677094f226241b0a049e0167) ### [`v0.8.158`](https://github.com/nextapps-de/flexsearch/compare/dafb1371537c91f7723a91c3f4c3fb4c592a844c...b70d639180909bd1b6f55d5afcdbf4cd383c4518) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/dafb1371537c91f7723a91c3f4c3fb4c592a844c...b70d639180909bd1b6f55d5afcdbf4cd383c4518) ### [`v0.8.157`](https://github.com/nextapps-de/flexsearch/compare/40a9ae0ccb5c6a470bb20bd53e91951888521455...dafb1371537c91f7723a91c3f4c3fb4c592a844c) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/40a9ae0ccb5c6a470bb20bd53e91951888521455...dafb1371537c91f7723a91c3f4c3fb4c592a844c) ### [`v0.8.154`](https://github.com/nextapps-de/flexsearch/compare/6aadad9c3d7b6d8b9c910167111396c88b905f5a...40a9ae0ccb5c6a470bb20bd53e91951888521455) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/6aadad9c3d7b6d8b9c910167111396c88b905f5a...40a9ae0ccb5c6a470bb20bd53e91951888521455) ### [`v0.8.153`](https://github.com/nextapps-de/flexsearch/compare/c767fef7698a3e95dcd82cd581b95528d2a4ce43...6aadad9c3d7b6d8b9c910167111396c88b905f5a) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/c767fef7698a3e95dcd82cd581b95528d2a4ce43...6aadad9c3d7b6d8b9c910167111396c88b905f5a) ### [`v0.8.152`](https://github.com/nextapps-de/flexsearch/compare/0abd307853b11cc88a689ca2d59cbbab8ab058f9...c767fef7698a3e95dcd82cd581b95528d2a4ce43) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/0abd307853b11cc88a689ca2d59cbbab8ab058f9...c767fef7698a3e95dcd82cd581b95528d2a4ce43) ### [`v0.8.151`](https://github.com/nextapps-de/flexsearch/compare/112a07725f72cdbf59ba96dfddf3b826bc53708b...0abd307853b11cc88a689ca2d59cbbab8ab058f9) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/112a07725f72cdbf59ba96dfddf3b826bc53708b...0abd307853b11cc88a689ca2d59cbbab8ab058f9) ### [`v0.8.149`](https://github.com/nextapps-de/flexsearch/compare/607300efe1e6e567d2e85ea5813a7599110ed027...112a07725f72cdbf59ba96dfddf3b826bc53708b) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/607300efe1e6e567d2e85ea5813a7599110ed027...112a07725f72cdbf59ba96dfddf3b826bc53708b) ### [`v0.8.148`](https://github.com/nextapps-de/flexsearch/compare/40f17691bf673192ae4a756657ac113781ff3506...607300efe1e6e567d2e85ea5813a7599110ed027) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/40f17691bf673192ae4a756657ac113781ff3506...607300efe1e6e567d2e85ea5813a7599110ed027) ### [`v0.8.147`](https://github.com/nextapps-de/flexsearch/compare/5abd01a3c575ab2c397b1ce224e3f266234d5b76...40f17691bf673192ae4a756657ac113781ff3506) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/5abd01a3c575ab2c397b1ce224e3f266234d5b76...40f17691bf673192ae4a756657ac113781ff3506) ### [`v0.8.143`](https://github.com/nextapps-de/flexsearch/compare/98c6039a0aef9d780bbd4f67c51c287e5490b399...5abd01a3c575ab2c397b1ce224e3f266234d5b76) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/98c6039a0aef9d780bbd4f67c51c287e5490b399...5abd01a3c575ab2c397b1ce224e3f266234d5b76) ### [`v0.8.142`](https://github.com/nextapps-de/flexsearch/compare/bbccf2d1a633537a48778dff886be83216d0b601...98c6039a0aef9d780bbd4f67c51c287e5490b399) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/bbccf2d1a633537a48778dff886be83216d0b601...98c6039a0aef9d780bbd4f67c51c287e5490b399) ### [`v0.8.141`](https://github.com/nextapps-de/flexsearch/compare/471830ef0f36c291e74ad0af2992252b36736100...bbccf2d1a633537a48778dff886be83216d0b601) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/471830ef0f36c291e74ad0af2992252b36736100...bbccf2d1a633537a48778dff886be83216d0b601) ### [`v0.8.140`](https://github.com/nextapps-de/flexsearch/compare/b2db45a47c439afefc7d68db60bea3b0c7450795...471830ef0f36c291e74ad0af2992252b36736100) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/b2db45a47c439afefc7d68db60bea3b0c7450795...471830ef0f36c291e74ad0af2992252b36736100) ### [`v0.8.138`](https://github.com/nextapps-de/flexsearch/compare/afa4a8acb9e41355ef4d397428478ecc9f3dab3f...b2db45a47c439afefc7d68db60bea3b0c7450795) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/afa4a8acb9e41355ef4d397428478ecc9f3dab3f...b2db45a47c439afefc7d68db60bea3b0c7450795) ### [`v0.8.135`](https://github.com/nextapps-de/flexsearch/compare/9026442e06dac75a61020d31b74866881b016d45...afa4a8acb9e41355ef4d397428478ecc9f3dab3f) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/9026442e06dac75a61020d31b74866881b016d45...afa4a8acb9e41355ef4d397428478ecc9f3dab3f) ### [`v0.8.132`](https://github.com/nextapps-de/flexsearch/compare/019c60da2413d7c797f5ef04ce9fd0623b351768...9026442e06dac75a61020d31b74866881b016d45) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/019c60da2413d7c797f5ef04ce9fd0623b351768...9026442e06dac75a61020d31b74866881b016d45) ### [`v0.8.117`](https://github.com/nextapps-de/flexsearch/compare/d9f235ce3b8a195c3fd02cabc860502de51a8ad6...019c60da2413d7c797f5ef04ce9fd0623b351768) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/d9f235ce3b8a195c3fd02cabc860502de51a8ad6...019c60da2413d7c797f5ef04ce9fd0623b351768) ### [`v0.8.105`](https://github.com/nextapps-de/flexsearch/compare/0455fa4b7449f56edcc09f8500b92f9d29b89bf0...d9f235ce3b8a195c3fd02cabc860502de51a8ad6) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/0455fa4b7449f56edcc09f8500b92f9d29b89bf0...d9f235ce3b8a195c3fd02cabc860502de51a8ad6) ### [`v0.8.103`](https://github.com/nextapps-de/flexsearch/compare/0.8.1...0455fa4b7449f56edcc09f8500b92f9d29b89bf0) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/0.8.1...0455fa4b7449f56edcc09f8500b92f9d29b89bf0) ### [`v0.8.1`](https://github.com/nextapps-de/flexsearch/blob/HEAD/CHANGELOG.md#v081) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/0.8.0...0.8.1) - Resolver Support for Documents - Asynchronous Runtime Balancer, new option `priority` - Export/Import Worker Indexes + Document Worker, new extern config options `export` and `import` - Improved interoperability of the different build packages, including source folder - Support custom `filter` function for encoder (stop-word filter) ### [`v0.8.0`](https://github.com/nextapps-de/flexsearch/blob/HEAD/CHANGELOG.md#v080) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/4c3966709f855c6980c21035cf230b2f9150d065...0.8.0) - Persistent indexes support for: `IndexedDB` (Browser), `Redis`, `SQLite`, `Postgres`, `MongoDB`, `Clickhouse` - Enhanced language customization via the new `Encoder` class - Result Highlighting - Query performance achieve results up to 4.5 times faster compared to the previous generation v0.7.x by also improving the quality of results - Enhanced support for larger indexes or larger result sets - Improved offset and limit processing achieve up to 100 times faster traversal performance through large datasets - Support for larger In-Memory index with extended key size (the defaults maximum keystore limit is: 2^24) - Greatly enhanced performance of the whole text encoding pipeline - Improved indexing of numeric content (Triplets) - Intermediate result sets and `Resolver` - Basic Resolver: `and`, `or`, `xor`, `not`, `limit`, `offset`, `boost`, `resolve` - Improved charset collection - New charset preset `soundex` which further reduces memory consumption by also increasing "fuzziness" - Performance gain when polling tasks to the index by using "Event-Loop-Caches" - Up to 100 times faster deletion/replacement when not using the additional "fastupdate" register - Regex Pre-Compilation (transforms hundreds of regex rules into just a few) - Extended support for multiple tags (DocumentIndex) - Custom Fields ("Virtual Fields") - Custom Filter - Custom Score Function - Added French language preset (stop-word filter, stemmer) - Enhanced Worker Support - Export / Import index in chunks - Improved Build System + Bundler (Supported: CommonJS, ESM, Global Namespace), also the import of language packs are now supported for Node.js - Full covering index.d.ts type definitions - Fast-Boot Serialization optimized for Server-Side-Rendering (PHP, Python, Ruby, Rust, Java, Go, Node.js, ...) ### [`v0.7.43`](https://github.com/nextapps-de/flexsearch/compare/12f48e64f729cdbea21d73112f0ce507ac76cc81...4c3966709f855c6980c21035cf230b2f9150d065) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/12f48e64f729cdbea21d73112f0ce507ac76cc81...4c3966709f855c6980c21035cf230b2f9150d065) ### [`v0.7.42`](https://github.com/nextapps-de/flexsearch/compare/a0a798d7fe10c40048769ea4b478d418a8a3e5a5...12f48e64f729cdbea21d73112f0ce507ac76cc81) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/a0a798d7fe10c40048769ea4b478d418a8a3e5a5...12f48e64f729cdbea21d73112f0ce507ac76cc81) ### [`v0.7.41`](https://github.com/nextapps-de/flexsearch/compare/5c54b465a8c4a5f444a28b3226d7703875f67f42...a0a798d7fe10c40048769ea4b478d418a8a3e5a5) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/5c54b465a8c4a5f444a28b3226d7703875f67f42...a0a798d7fe10c40048769ea4b478d418a8a3e5a5) ### [`v0.7.40`](https://github.com/nextapps-de/flexsearch/compare/b8279ebddcc4d5659ec61b9de98877b5908466f7...5c54b465a8c4a5f444a28b3226d7703875f67f42) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/b8279ebddcc4d5659ec61b9de98877b5908466f7...5c54b465a8c4a5f444a28b3226d7703875f67f42) ### [`v0.7.39`](https://github.com/nextapps-de/flexsearch/compare/f18da33d8f784a4b518d4541926fe4d9036ca204...b8279ebddcc4d5659ec61b9de98877b5908466f7) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/f18da33d8f784a4b518d4541926fe4d9036ca204...b8279ebddcc4d5659ec61b9de98877b5908466f7) ### [`v0.7.34`](https://github.com/nextapps-de/flexsearch/compare/1d620d68c498e6617192fdd6ff6e0e70c666b254...f18da33d8f784a4b518d4541926fe4d9036ca204) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/1d620d68c498e6617192fdd6ff6e0e70c666b254...f18da33d8f784a4b518d4541926fe4d9036ca204) ### [`v0.7.33`](https://github.com/nextapps-de/flexsearch/compare/0.7.31...1d620d68c498e6617192fdd6ff6e0e70c666b254) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/0.7.31...1d620d68c498e6617192fdd6ff6e0e70c666b254) ### [`v0.7.31`](https://github.com/nextapps-de/flexsearch/compare/65b027ca316ceefd8ea89f472561a0f91179b2f3...0.7.31) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/65b027ca316ceefd8ea89f472561a0f91179b2f3...0.7.31) ### [`v0.7.21`](https://github.com/nextapps-de/flexsearch/compare/19bdd2f2d306c7cb1470cf5caab5bf9258daee18...65b027ca316ceefd8ea89f472561a0f91179b2f3) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/19bdd2f2d306c7cb1470cf5caab5bf9258daee18...65b027ca316ceefd8ea89f472561a0f91179b2f3) ### [`v0.7.11`](https://github.com/nextapps-de/flexsearch/compare/0.7.3...19bdd2f2d306c7cb1470cf5caab5bf9258daee18) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/0.7.3...19bdd2f2d306c7cb1470cf5caab5bf9258daee18) ### [`v0.7.3`](https://github.com/nextapps-de/flexsearch/compare/0.7.2...0.7.3) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/0.7.2...0.7.3) ### [`v0.7.2`](https://github.com/nextapps-de/flexsearch/compare/0.7.1...0.7.2) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/0.7.1...0.7.2) ### [`v0.7.1`](https://github.com/nextapps-de/flexsearch/compare/0.7.0...0.7.1) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/0.7.0...0.7.1) ### [`v0.7.0`](https://github.com/nextapps-de/flexsearch/blob/HEAD/CHANGELOG.md#v070) [Compare Source](https://github.com/nextapps-de/flexsearch/compare/0.6.32...0.7.0) - Bidirectional Context (the order of words can now vary, does not increase memory when using bidirectional context) - New memory-friendly strategy for indexes (switchable, saves up to 50% of memory for each index, slightly decrease performance) - Better scoring calculation (one of the biggest concerns of the old implementation was that the order of arrays processed in the intersection has affected the order of relevance in the final result) - Fix resolution (the resolution in the old implementation was not fully stretched through the whole range in some cases) - Skip words (optionally, automatically skip words from the context chain which are too short) - Hugely improves performance of long queries (up to 450x faster!) and also memory allocation (up to 250x less memory) - New fast-update strategy (optionally, hugely improves performance of all updates and removals of indexed contents up to 2850x) - Improved auto-balanced cache (keep and expire cache by popularity) - Append contents to already existing entries (already indexed documents or contents) - New method "contain" to check if an ID was already indexed - Access documents directly from internal store (read/write) - Suggestions are hugely improved, falls back from context search all the way down to single term match - Document descriptor has now array support (optionally adds array entries via the new `append` under the hood to provide a unique relevance context for each entry) - Document storage handler gets improved - Results from document index now grouped by field (this is one of the few bigger breaking changes which needs migrations of your old code) - Boolean search has a new concept (use in combination of the new result structure) - Node.js Worker Threads - Improved default latin encoders - New parallelization model and workload distribution - Improved Export/Import - Tag Search - Offset pagination - Enhanced Field Search - Improved sorting by relevance (score) - Added Context Scoring (context index has its own resolution) - Enhanced charset normalization - Improved bundler (support for inline WebWorker) These features have been removed: - Where-Clause - Index Information `index.info()` - Paging Cursor (was replaced by `offset`) ##### Migration Quick Overview > The "async" options was removed, instead you can call each method in its async version, e.g. `index.addAsync` or `index.searchAsync`. > Define document fields as object keys is not longer supported due to the unification of all option payloads. A full configuration example for a context-based index: ```js var index = new Index({ tokenize: "strict", resolution: 9, minlength: 3, optimize: true, fastupdate: true, cache: 100, context: { depth: 1, resolution: 3, bidirectional: true } }); ``` The `resolution` could be set also for the contextual index. A full configuration example for a document based index: ```js const index = new Document({ tokenize: "forward", optimize: true, resolution: 9, cache: 100, worker: true, document: { id: "id", tag: "tag", store: [ "title", "content" ], index: [{ field: "title", tokenize: "forward", optimize: true, resolution: 9 },{ field: "content", tokenize: "strict", optimize: true, resolution: 9, minlength: 3, context: { depth: 1, resolution: 3 } }] } }); ``` A full configuration example for a document search: ```js index.search({ enrich: true, bool: "and", tag: ["cat", "dog"], index: [{ field: "title", query: "some query", limit: 100, suggest: true },{ field: "content", query: "same or other query", limit: 100, suggest: true }] }); ``` ##### Where Clause Replacement Old Syntax: ```js const result = index.where({ cat: "comedy", year: "2018" }); ``` Equivalent Syntax (0.7.x): ```js const data = Object.values(index.store); ``` The line above retrieves data from the document store (just useful when not already available in your runtime). ```js const result = data.filter(function(item){ return item.cat === "comedy" && item.year === "2018"; }); ``` Also considering using the <a href="https://github.com/nextapps-de/flexsearch#tags">Tag-Search</a> feature, which partially replaces the Where-Clause with a huge performance boost. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMTIuMCIsInVwZGF0ZWRJblZlciI6IjQxLjEuNCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJyZW5vdmF0ZS1ib3QiXX0=-->
chore(deps): update dependency flexsearch to ^0.8.0
Some checks failed
renovate/artifacts Artifact file update failure
abc562d39f
Author
Member

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: yarn.lock
Unknown Syntax Error: Unsupported option name ("--ignore-platform").

$ yarn install [--json] [--immutable] [--immutable-cache] [--refresh-lockfile] [--check-cache] [--check-resolutions] [--inline-builds] [--mode #0]

### ⚠️ Artifact update problem Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: yarn.lock ``` Unknown Syntax Error: Unsupported option name ("--ignore-platform"). $ yarn install [--json] [--immutable] [--immutable-cache] [--refresh-lockfile] [--check-cache] [--check-resolutions] [--inline-builds] [--mode #0] ```
Some checks failed
renovate/artifacts Artifact file update failure
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/flexsearch-0.x:renovate/flexsearch-0.x
git switch renovate/flexsearch-0.x

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff renovate/flexsearch-0.x
git switch renovate/flexsearch-0.x
git rebase master
git switch master
git merge --ff-only renovate/flexsearch-0.x
git switch renovate/flexsearch-0.x
git rebase master
git switch master
git merge --no-ff renovate/flexsearch-0.x
git switch master
git merge --squash renovate/flexsearch-0.x
git switch master
git merge --ff-only renovate/flexsearch-0.x
git switch master
git merge renovate/flexsearch-0.x
git push origin master
Sign in to join this conversation.
No description provided.