apache-stanbol

How to add a new field to the document in a custom Solr Filter

半城伤御伤魂 提交于 2019-12-25 01:54:20
问题 I am writing a custom filter in Solr to post a token to Apache Stanbol for enhancement and index the response to a different field in the same document. In my test code below I have got the Stanbol response and have added it as a new document to Solr. My requirement is to add the stanbolResponse as a field value to the same document being indexed. I think this can be done if I can retrieve the document Id from the TokenStream in the filter. Can anyone please help me with a sample code/example

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test

天涯浪子 提交于 2019-11-29 19:09:24
问题 I am trying to install stanbol and getting the following error Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test Attaching the error log [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project org.apache.stanbol.entityhub.ldpath: There are test failures. [ERROR] [ERROR] Please refer to /home/stanbol-trunk/entityhub/ldpath/target/surefire-reports for the individual test results. [ERROR] -> [Help

How to convert a Jsoup Document to a W3C Document?

橙三吉。 提交于 2019-11-28 00:29:43
问题 I have build a Jsoup Document by parsing a in-house HTML page, public Document newDocument(String path) throws IOException { Document doc = null; doc = Jsoup.connect(path).timeout(0).get(); return new HtmlDocument<Document>(doc); } I would want to convert the Jsoup document to my org.w3c.dom.Document I used an available library DOMBuilder for this but when parsing I get org.w3c.dom.Document as null. I am unable to understand the problem, tried searching but couldnt find any answer. Code to