An open API service indexing awesome lists of open source software.

https://github.com/mlibrary/solr_analyzed_string

Create a string field using another fieldType's analysis chain
https://github.com/mlibrary/solr_analyzed_string

Last synced: about 1 year ago
JSON representation

Create a string field using another fieldType's analysis chain

Awesome Lists containing this project

README

          

# solr_analyzed_string -- fill a solr string based on a textField definition

There's a real advantage to doing data munging within the solr process,
since you're guaranteed that index- and query-time analysis will be
identical.

Unfortunately, solr `TextField` types aren't run through the analyzer
when doing range queries, and getting an exact phrase match (as opposed
to an exact _subphrase_ match) can be difficult.

This code allows you to create a `fieldType` based on a `solr.TextField`,
and then create a solr `string` field with the results of running the
input through that set of filters.

## Usage

First, put the latest release .jar somewhere your schema will find it.

Then add something like this to your schema.

```xml













```