• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lucaong / minisearch / #515
99%

Build:
DEFAULT BRANCH: master
Ran 26 Oct 2023 02:25PM UTC
Jobs 1
Files 4
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Oct 2023 02:24PM UTC coverage: 99.339% (+0.02%) from 99.324%
#515

push

GitHub Actions

web-flow
Wildcard query that matches all documents (#234)

* Wildcard query that matches all documents

This commit introduces a special wildcard value, `MiniSearch.wildcard`,
that matches all documents:

```javascript
// Return search results for all documents
minisearch.search(MiniSearch.wildcard)

// Return search results for all documents in the 'fiction' category
minisearch.search(MiniSearch.wildcard, {
  filter: (result) => result.category === 'fiction'
})
```

This is useful for retrieving all results, but still apply search
options such as `filter` and `boostDocument`. It can also be useful in
query combinations, for example to query for all documents that DO NOT
contain a specific term:

```javascript
// Search for all documents that do NOT contain the term "maintenance"
const results = ms.search({
  combineWith: 'AND_NOT',
  queries: [
    MiniSearch.wildcard,
    'maintenance'
  ]
})
```

* Optimize wildcard search with no document boosting

In this case, there is no need to sort the results.

222 of 228 branches covered (0.0%)

Branch coverage included in aggregate %.

16 of 16 new or added lines in 1 file covered. (100.0%)

680 of 680 relevant lines covered (100.0%)

731.24 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #515.1 26 Oct 2023 02:25PM UTC 4
99.34
Source Files on build #515
  • Tree
  • List 4
  • Changed 4
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 9a044eae on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc