diff --git a/solr/contrib/extraction/src/test-files/extraction/open-document.odt b/solr/contrib/extraction/src/test-files/extraction/open-document.odt new file mode 100644 index 00000000000..57f4369da56 Binary files /dev/null and b/solr/contrib/extraction/src/test-files/extraction/open-document.odt differ diff --git a/solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java b/solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java index 89533bdc49b..3159793f847 100644 --- a/solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java +++ b/solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java @@ -181,6 +181,16 @@ public class ExtractingRequestHandlerTest extends SolrTestCaseJ4 { , "//*/arr[@name='stream_name']/str[.='tiny.txt.gz']" ); + // compressed file + loadLocal("extraction/open-document.odt", + "uprefix", "ignored_", + "fmap.content", "extractedContent", + "literal.id", "open-document"); + assertU(commit()); + assertQ(req("extractedContent:\"Práctica sobre GnuPG\"") + , "//*[@numFound='1']" + , "//*/arr[@name='stream_name']/str[.='open-document.odt']" + ); }