lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shivprasad Shetty <>
Subject Solr web crawler with recursive option
Date Thu, 11 Apr 2019 10:49:34 GMT
Hello Team,

                I am working on solr for the first time and got the setup done. Now I have
created a core using command line and want to perform webcrawl of a third party site.
If I try it with individual links, I am able to do the crawl and index it to the core.This
was done using >
java -Ddata=web -Durl=https://solr:8985/solr/solrhelp/update -jar post.jar

Now what I intend to do is to give a url and using the recursive option (-Drecursive) and
let it crawl the entire site.
Note that I am pointing to a website that has around 125 pages and I am using the below command
java -Ddata=web -Durl=https://solr:8985/solr/solrhelp/update -Drecursive=yes -jar post.jar  and
java -Ddata=web -Durl=https://solr:8985/solr/solrhelp/update -Drecursive=2 -jar post.jar

and I am getting the below error message.

POSTed web resource (depth: 0)
[Fatal Error] :1:1: Content is not allowed in prolog.
Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException; lineNumber:
1; columnNumber: 1; Content is not allowed in prolog.
        at org.apache.solr.util.SimplePostTool$PageFetcher.getLinksFromWebPage(
        at org.apache.solr.util.SimplePostTool.webCrawl(
        at org.apache.solr.util.SimplePostTool.postWebPages(
        at org.apache.solr.util.SimplePostTool.doWebMode(
        at org.apache.solr.util.SimplePostTool.execute(
        at org.apache.solr.util.SimplePostTool.main(
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed
in prolog.
        at Source)
        at Source)
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at org.apache.solr.util.SimplePostTool.makeDom(
        at org.apache.solr.util.SimplePostTool$PageFetcher.getLinksFromWebPage(
        ... 5 more

I would be very grateful if anyone could get me to solve this issue I have been trying to
fix for a couple of days.


Confidentiality Notice: This e-mail message, including any attachments, is for the sole use
of the intended recipient(s) and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail, delete and then destroy all copies of
the original message.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message