fergiemcdowall on v3.2.0
fergiemcdowall on master
bump node test versions version bump (compare)
fergiemcdowall on master
feat: switch to `abstract-level` fix: install `fergies-inverted-… fix: fix require path for `si` and 4 more (compare)
dependabot[bot] on npm_and_yarn
Bump file-type from 16.5.3 to 1… (compare)
eklem on npm_and_yarn
eklem on master
Bump terser from 5.14.1 to 5.14… Merge pull request #587 from fe… (compare)
;(async () => {
const si = require('search-index')
const print = txt => console.log(JSON.stringify(txt, null, 2))
const db = await si({
name: 'arrays'
})
const data = [
{
name: 'Homer Simpson',
favoritePosts: ['content/posts/welcome3.md'],
_id: 'content/authors/homer.md'
}
]
await db.PUT(data)
await db
.QUERY({
FIELD: ['favoriteposts'],
VALUE: 'content/posts/welcome3.md'
})
.then(print)
})()
'content/posts/welcome3.md'
(no array), then special chars will be be stripped and the string will be tokenized
Would
const data = [
{
name: 'Homer Simpson',
favoritePosts: ['content/posts/welcome3.md', 'content/post/welcome4.md'],
_id: 'content/authors/homer.md'
}
]
Be indexed as 'content/posts/welcome3.md'
and 'content/posts/welcome4.md'
as separate fields somehow (sorry, might be a confusing question)
level-out
to inspect the index
search-index@3
(coming soon)
"bøker er gøy"
are not always tokenized correctly
ø
)
['bøker er', 'er gøy']
VALUE: 'another'
comments: ['doh', 'this is another comment']
would allow you to search for VALUE: 'doh'
and VALUE: 'this is another comment'