[ 
https://issues.apache.org/jira/browse/SOLR-3295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244694#comment-13244694
 ] 

Robert Muir commented on SOLR-3295:
-----------------------------------

Is it possible for anyone to write a solr-level test? I tried to make one 
(using testrh.nc from 
http://www.unidata.ucar.edu/software/netcdf/examples/files.html)

{noformat}
Index: 
solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java
===================================================================
--- 
solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java
       (revision 1308448)
+++ 
solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java
       (working copy)
@@ -445,6 +445,17 @@
     catch(Exception expected){}
   }
   
+  public void testCDF() throws Exception {
+    ExtractingRequestHandler handler = (ExtractingRequestHandler) 
h.getCore().getRequestHandler("/update/extract");
+    assertTrue("handler is null and it shouldn't be", handler != null);
+    loadLocal("extraction/testrh.nc",
+        "literal.id", "one",
+        "fmap.content", "extractedContent"
+    );
+    assertU(commit());
+    assertQ(req("*:*"), "//result[@numFound=1]");
+  }
+  
   SolrQueryResponse loadLocal(String filename, String... args) throws 
Exception {
     LocalSolrQueryRequest req = (LocalSolrQueryRequest) req(args);
     try {
{noformat}

But on my java5 jdk, this test passes. I guess i dont know enough about whats 
going on with contrib/extraction
here to figure this out. But i saw options like 'ignore exceptions from tika' 
and it seems like there are a lot
of options.

I'd like to get a 3.6 release candidate out soon... 
                
> Binaries contain 1.6 classes
> ----------------------------
>
>                 Key: SOLR-3295
>                 URL: https://issues.apache.org/jira/browse/SOLR-3295
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Dawid Weiss
>            Assignee: Robert Muir
>            Priority: Minor
>             Fix For: 3.6
>
>         Attachments: output.log
>
>
> I've ran this tool (does the job): http://code.google.com/p/versioncheck/ on 
> the checkout of branch_3x. To my surprise there is a JAR which contains Java 
> 1.6 code:
> {noformat}
> Major.Minor Version : 50.0             JAVA compatibility : Java 1.6 
> platform: 45.3-50.0
> Number of classes : 60
> Classes are : 
> c:\Work\lucene-solr\.\solr\contrib\extraction\lib\netcdf-4.2-min.jar [:] 
> ucar/unidata/geoloc/Bearing.class
> ...
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to