# JBrowse1TextSearchAdapter

Auto-generated from the config schema in the source. See the [config guide](https://jbrowse.org/jb2/docs/config_guide) for concepts. Provided by the `legacy-jbrowse` plugin. [View source](https://github.com/GMOD/jbrowse-components/blob/main/plugins/legacy-jbrowse/src/JBrowse1TextSearchAdapter/configSchema.ts).

Searches a names index written by JBrowse 1's `generate-names.pl`. The
`assemblyNames` slot lists the assemblies the index covers; the index itself
names the tracks each hit is in.

## Example usage

An entry in `aggregateTextSearchAdapters`, pointing at the `names/`
directory JBrowse 1's `generate-names.pl` wrote — so an existing instance's
search index is reused rather than rebuilt with `jbrowse text-index`:

```js
{
  type: 'JBrowse1TextSearchAdapter',
  namesIndexLocation: { uri: 'https://example.com/jbrowse1/data/names/' },
  assemblyNames: ['hg19'],
}
```

## Config slots

`JBrowse1TextSearchAdapter` has no `uri` [shorthand](https://jbrowse.org/jb2/docs/config_guides/file_types#the-uri-shorthand) — give it the location slots below. Slot types (`fileLocation`, `frozen`, ...) are explained in the [config slot types reference](https://jbrowse.org/jb2/docs/config_guides/slot_types). Slots a base configuration contributes are listed here too, so this table is the whole surface.

| Slot | Description |
| --- | --- |
| **namesIndexLocation**<br>[`fileLocation`](https://jbrowse.org/jb2/docs/config_guides/slot_types#filelocation) = <code>{ uri: '/volvox/names', locationType: 'UriLocation' }</code> | the location of the JBrowse1 names index data directory |
| **assemblyNames**<br>[`stringArray`](https://jbrowse.org/jb2/docs/config_guides/slot_types#stringarray) = <code>[]</code> | List of assemblies covered by text search adapter |

## Retired keys

An older config may still write these. Each loads without an error, and `jbrowse validate` reports it as stale.

| Key | On load |
| --- | --- |
| `tracks` | ignored |

