You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tika 1.8 has been released. See https://dist.apache.org/repos/dist/release/tika/CHANGES-1.8.txt
We can replace:
```java
public static boolean isLocaleCompatible() {
String language = Locale.getDefault().getLanguage();
boolean acceptedLocale = true;
if (
// We can have issues with JDK7 Patch < 80
(JVM_MAJOR_VERSION == 1 && JVM_MINOR_VERSION == 7 && JVM_PATCH_MAJOR_VERSION == 0 && JVM_PATCH_MINOR_VERSION < 80) ||
// We can have issues with JDK8 Patch < 40
(JVM_MAJOR_VERSION == 1 && JVM_MINOR_VERSION == 8 && JVM_PATCH_MAJOR_VERSION == 0 && JVM_PATCH_MINOR_VERSION < 40)
) {
if (language.equalsIgnoreCase("tr") || language.equalsIgnoreCase("az")) {
acceptedLocale = false;
}
}
return acceptedLocale;
}
```
by
```java
public static boolean isLocaleCompatible() {
return true;
}
```
Related to https://issues.apache.org/jira/browse/TIKA-1526 and elastic#105
Note that Content-type has changed a bit and now returns something like `application/xhtml+xml; charset=ISO-8859-1` instead of `application/xhtml+xml`.
Closeselastic#112.
(cherry picked from commit bf4af47971ed07bfa126409413c435f121444c3c)
assertThat(doc.get(docMapper.mappers().getMapper("file.title").names().indexName()), equalTo("XHTML test document"));
62
61
assertThat(doc.get(docMapper.mappers().getMapper("file").names().indexName()), containsString("This document tests the ability of Apache Tika to extract content"));
63
62
@@ -69,7 +68,7 @@ public void testSimpleMappings() throws Exception {
assertThat(doc.get(docMapper.mappers().getMapper("file.title").names().indexName()), equalTo("XHTML test document"));
74
73
assertThat(doc.get(docMapper.mappers().getMapper("file").names().indexName()), containsString("This document tests the ability of Apache Tika to extract content"));
0 commit comments