A Solr filter that converts ISO-639-1 and ISO-639-2 codes into text so you can have a human-friendly facet.
Switch branches/tags
solr-iso639-filter-4.10.4-r20150615 solr-iso639-filter-4.10.4-r20131208 solr-iso639-filter-4.10.3-r20150615 solr-iso639-filter-4.10.3-r20131208 solr-iso639-filter-4.10.2-r20150615 solr-iso639-filter-4.10.2-r20131208 solr-iso639-filter-4.10.1-r20150615 solr-iso639-filter-4.10.1-r20131208 solr-iso639-filter-4.10.0-r20150615 solr-iso639-filter-4.10.0-r20131208 solr-iso639-filter-4.9.1-r20150615 solr-iso639-filter-4.9.1-r20131208 solr-iso639-filter-4.9.0-r20150615 solr-iso639-filter-4.9.0-r20131208 solr-iso639-filter-4.8.1-r20150615 solr-iso639-filter-4.8.1-r20131208 solr-iso639-filter-4.8.0-r20150615 solr-iso639-filter-4.8.0-r20131208 solr-iso639-filter-4.7.2-r20150615 solr-iso639-filter-4.7.2-r20131208 solr-iso639-filter-4.7.1-r20150615 solr-iso639-filter-4.7.1-r20131208 solr-iso639-filter-4.7.0-r20150615 solr-iso639-filter-4.7.0-r20131208 solr-iso639-filter-4.6.1-r20150615 solr-iso639-filter-4.6.1-r20131208 solr-iso639-filter-4.6.0-r20150615 solr-iso639-filter-4.6.0-r20131208 solr-iso639-filter-4.5.1-r20150615 solr-iso639-filter-4.5.1-r20131208 solr-iso639-filter-4.5.1-r20130829 solr-iso639-filter-4.5.0-r20150615 solr-iso639-filter-4.5.0-r20131208 solr-iso639-filter-4.5.0-r20130829 solr-iso639-filter-4.4.0-r20150615 solr-iso639-filter-4.4.0-r20131208 solr-iso639-filter-4.4.0-r20130829 solr-iso639-filter-4.3.1-r20150615 solr-iso639-filter-4.3.1-r20131208 solr-iso639-filter-4.3.1-r20130829 solr-iso639-filter-4.3.0-r20150615 solr-iso639-filter-4.3.0-r20131208 solr-iso639-filter-4.3.0-r20130829 solr-iso639-filter-4.2.1-r20150615 solr-iso639-filter-4.2.1-r20131208 solr-iso639-filter-4.2.1-r20130829 solr-iso639-filter-4.2.0-r20150615 solr-iso639-filter-4.2.0-r20131208 solr-iso639-filter-4.2.0-r20130829 solr-iso639-filter-4.1.0-r20150615 solr-iso639-filter-4.1.0-r20131208 solr-iso639-filter-4.1.0-r20130829 solr-iso639-filter-4.0.0-r20150615 solr-iso639-filter-4.0.0-r20131208 solr-iso639-filter-4.0.0-r20130829 solr-iso639-filter-3.6.2-r20150615 solr-iso639-filter-3.6.2-r20131208 solr-iso639-filter-3.6.2-r20130829 solr-iso639-filter-3.6.1-r20150615 solr-iso639-filter-3.6.1-r20131208 solr-iso639-filter-3.6.1-r20130829
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
.travis.yml
LICENSE.txt
README.md
pom.xml
release.sh

README.md

solr-iso639-filter Build Status

A Solr filter that converts ISO-639-1 and ISO-639-2 codes into human-readable text that can be used as a Solr facet. It has been tested against Solr versions 3.6.1 through 4.8.1. It now requires at least JDK 7, minimum update 55 (Lucene made this a requirement as of 4.8.0).

Getting Started

You can either download a pre-built jar file, build the project for yourself or, if you run Solr from within a Maven project, add the filter as a dependency in your pom.xml file. You can learn about each of these options, as well as how to load and configure the filter, at the project's website.

The TL;DR Build Instructions

Not interested in following the link above? You can build the project by typing:

mvn install

or, for a older version of Solr, by supplying a version number:

mvn -Dsolr.version=3.6.2 install

You'll find the resulting jar file in the 'target' directory. Add that jar to your Solr's lib directory.

To configure the filter, add the following snippets to the appropriate places in your Solr's schema.xml file:

<fieldType name="iso639Code" class="solr.TextField" omitNorms="true">
  <analyzer>
    <tokenizer class="solr.PatternTokenizerFactory" pattern="[;,]\s*"/>
    <filter class="info.freelibrary.solr.ISO639ConversionFilterFactory"/>
  </analyzer>
</fieldType>

and

<field name="iso639" type="iso639Code" indexed="true" multiValued="true"/>

If you don't know the appropriate places, check out the project's documentation for more detailed information.

License

Apache Software License, version 2.0

Contact

If you have questions about solr-iso639-filter feel free to ask them on the FreeLibrary Projects mailing list; or, if you encounter a problem, please feel free to open an issue in the project's issue queue.