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
- Host: GitHub
- URL: https://github.com/mlibrary/solr_analyzed_string
- Owner: mlibrary
- Created: 2022-09-18T19:04:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-04T15:33:53.000Z (over 3 years ago)
- Last Synced: 2025-01-23T21:53:22.973Z (over 1 year ago)
- Language: Java
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```