# @wmfs/tymly-solr-plugin

> Plugin which handles interaction with Apache Solr for Tymly framework

Latest version **2.63.0** (published 2026-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wmfs/tymly-solr-plugin
pnpm add @wmfs/tymly-solr-plugin
yarn add @wmfs/tymly-solr-plugin
bun add @wmfs/tymly-solr-plugin
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 2.63.0 |
| Published | 2026-11-16 |
| First published | 2018-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 271.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | West Midlands Fire Service |
| Maintainers | wmfsbot |
| Keywords | tymly, plugin, Solr, search |

## Links

- npm: https://www.npmjs.com/package/@wmfs/tymly-solr-plugin
- Repository: https://github.com/wmfs/tymly-solr-plugin
- Homepage: https://github.com/wmfs/tymly-solr-plugin#readme
- Issues: https://github.com/wmfs/tymly-solr-plugin/issues
- npm.io page: https://npm.io/package/@wmfs/tymly-solr-plugin

## Dependencies (5)

- [axios](https://npm.io/package/axios.md) 1.21.1
- [lodash](https://npm.io/package/lodash.md) 4.18.1
- [process](https://npm.io/package/process.md) 0.11.10
- [emoji-regex](https://npm.io/package/emoji-regex.md) 11.0.0
- [solr-client](https://npm.io/package/solr-client.md) 0.9.0

## Alternatives

- [monaco-yaml](https://npm.io/package/monaco-yaml.md) — 420.1K weekly downloads
- [@crewx/workflow](https://npm.io/package/@crewx/workflow.md) — 3.1K weekly downloads
- [yaml-cat](https://npm.io/package/yaml-cat.md) — 38 weekly downloads
- [nunjucks-in-yaml](https://npm.io/package/nunjucks-in-yaml.md) — 9 weekly downloads
- [shopify-symlinks](https://npm.io/package/shopify-symlinks.md) — 3 weekly downloads

## Recent versions

- 2.63.0 (latest) — 2026-11-16
- 2.62.0 — 2026-11-06
- 2.61.0 — 2026-11-02
- 2.60.0 — 2026-11-02
- 2.59.0 — 2026-10-30
- 2.58.1 — 2026-08-13
- 2.58.0 — 2026-04-10
- 2.57.0 — 2025-10-21
- 2.56.0 — 2025-07-23
- 2.55.0 — 2025-06-16
- 2.54.0 — 2025-04-25
- 2.53.0 — 2025-03-20
- 2.52.0 — 2025-03-17
- 2.51.0 — 2025-03-12
- 2.50.0 — 2025-03-10
- … 114 more at https://npm.io/package/@wmfs/tymly-solr-plugin/versions

## README

# tymly-solr-plugin
[![Tymly Package](https://img.shields.io/badge/tymly-package-blue.svg)](https://tymly.io/)
[![npm (scoped)](https://img.shields.io/npm/v/@wmfs/tymly-solr-plugin.svg)](https://www.npmjs.com/package/@wmfs/tymly-solr-plugin)
[![CircleCI](https://circleci.com/gh/wmfs/tymly-solr-plugin.svg?style=svg)](https://circleci.com/gh/wmfs/tymly-solr-plugin)
[![codecov](https://codecov.io/gh/wmfs/tymly-solr-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/wmfs/tymly-solr-plugin)
[![CodeFactor](https://www.codefactor.io/repository/github/wmfs/tymly-solr-plugin/badge)](https://www.codefactor.io/repository/github/wmfs/tymly-solr-plugin)
[![Dependabot badge](https://img.shields.io/badge/Dependabot-active-brightgreen.svg)](https://dependabot.com/)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/wmfs/tymly-solr-plugin/blob/master/LICENSE)

> This plugin handles interaction with Apache Solr.

On tymly startup, this plugin searches the loaded blueprints for models that have properties which should be indexed by Apache Solr.  It then creates a database view referencing those properties.  This service also provides functions to instruct Apache Solr to index data from a database table/view.

See the test blueprint in /test/fixtures/school-blueprint for an example of how to do this.

## <a name="install"></a>Install
```bash
$ npm install tymly-solr-plugin --save
```

## <a name="test"></a>Testing

Before running the tests, you'll need a test PostgreSQL database available and set a `PG_CONNECTION_STRING` environment variable to point to it, for example:

```PG_CONNECTION_STRING=postgres://postgres:postgres@localhost:5432/my_test_db```

You can also set an optional `SOLR_URL` environment variable to configure what Apache Solr instance to use.  If the environment variable is not set the plugin will default to `http://localhost:8983/solr`.  You can however explicitly configure what instance to use like this:

```SOLR_URL=http://domain.com:8983/solr```

Once the environment variables have been set, you can run the tests like this:

```bash
$ npm test
```


## <a name="license"></a>License

[MIT](https://github.com/wmfs/tymly/blob/master/LICENSE)

---
_Source: https://npm.io/package/@wmfs/tymly-solr-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
