Lucene-Utils

Adaption of String utilities from the Apache Lucene Project

License

License

GroupId

GroupId

com.illucit
ArtifactId

ArtifactId

lucene-utils
Last Version

Last Version

1.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

Lucene-Utils
Adaption of String utilities from the Apache Lucene Project
Project URL

Project URL

https://www.illucit.com
Project Organization

Project Organization

illucIT Software GmbH
Source Code Management

Source Code Management

https://github.com/illucIT/lucene-utils

Download lucene-utils

How to add to project

<!-- https://jarcasting.com/artifacts/com.illucit/lucene-utils/ -->
<dependency>
    <groupId>com.illucit</groupId>
    <artifactId>lucene-utils</artifactId>
    <version>1.1.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.illucit/lucene-utils/
implementation 'com.illucit:lucene-utils:1.1.2'
// https://jarcasting.com/artifacts/com.illucit/lucene-utils/
implementation ("com.illucit:lucene-utils:1.1.2")
'com.illucit:lucene-utils:jar:1.1.2'
<dependency org="com.illucit" name="lucene-utils" rev="1.1.2">
  <artifact name="lucene-utils" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.illucit', module='lucene-utils', version='1.1.2')
)
libraryDependencies += "com.illucit" % "lucene-utils" % "1.1.2"
[com.illucit/lucene-utils "1.1.2"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

lucene-utils

Maven Central

This package contains a wrapper for the function org.apache.lucene.analysis.miscellaneous.ASCIIFoldingFilter#foldToASCII from the Apache Lucene project.

The file was taken from the class org.apache.lucene.analysis.ASCIIFoldingFilter from the Apache Lucene project (package lucene-analyzers-common, version 4.7.0). This file was modified only by removing non-static functions which had dependencies to further Lucene classes. The static function foldToASCII itself is unmodified.

Requirements

lucene-utils is compiled with the Java7 compilation target, but it has support for Jigsaw (Java9+ module system).

In order to use it in a modular project, add the module com.illucit.lucene.utils to your project.

An example can be seen in the module-info.java of example-projects/java10.

module lucene.utils.java10example {
    [...]
    requires com.illucit.lucene.utils;
}

Setup Maven

To include this artifact as dependency of your Maven project in your pom.xml:

<dependency>
    <groupId>com.illucit</groupId>
    <artifactId>lucene-utils</artifactId>
    <version>1.1.2</version>
</dependency>

Usage

The package provides a Utility function com.illucit.util.ASCIIUtils#foldToASCII(String) which will replace all diacritical characters with the ASCII base variant, e.g. "ä" -> "a", "É" -> "E" and "ß" -> "ss". The mapping for the replacement is taken from a class in Apache Lucene.

com.illucit

illucIT Software GmbH

agile - smart - reliable

Versions

Version
1.1.2
1.1.1
1.1.0
1.0.1