You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/LokiJS-Forge/LokiDB/blob/master/CONTRIBUTING.md#question
Current behavior
Unable to test full-text-search
Environment
LokiDB version: @lokidb/loki@2.0.0-beta.8
Others:
I am trying to import
import loki from '@lokidb/loki';
import LokiFullTextSearch from '@lokidb/full-text-search';
and i'm getting
Module not found: Error: Can't resolve '@lokidb/full-text-search'
i can create new database with lokidb = new loki() but i'm unable to run this example for full-text-search
LokiFullTextSearch.register();
const lokis = new loki();
// Setup the collection with full-text search options.
const coll = lokis.addCollection("test", { fullTextSearch: [{ field: "txt" }] });
// Add documents.
coll.insert([
{ txt: "Betty Botter some butter" },
{ txt: "But she said the butter’s bitter" },
{ txt: "If I put it in my batter, it will make my batter bitter" },
{ txt: "But a bit of better butter will make my batter better" },
{ txt: "So ‘twas better Betty Botter bought a bit of better butter" }
]);
// Search.
const query = {
query: {
type: "term",
field: "txt",
value: "butter"
}
};
const result = coll.find({ $fts: query });
console.log(result);
Thanks
The text was updated successfully, but these errors were encountered:
I'm submitting a...
Current behavior
Unable to test full-text-search
Environment
I am trying to import
import loki from '@lokidb/loki';
import LokiFullTextSearch from '@lokidb/full-text-search';
and i'm getting
Module not found: Error: Can't resolve '@lokidb/full-text-search'
i can create new database with
lokidb = new loki()
but i'm unable to run this example for full-text-searchThanks
The text was updated successfully, but these errors were encountered: