mirror of https://github.com/apache/lucene.git
SOLR-6996: Add a test for ODF files in ExtractingRequestHandlerTest
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1652944 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
98d21dfbee
commit
a4d74500e7
Binary file not shown.
|
@ -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']"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue