嗨,我是Solr搜索的新手,当我尝试抓取网页时,出现以下错误

问题描述

在mac终端上运行它,出现以下错误

我正在使用的网站是https://factorpad.com/tech/solr/index.html

 > ravishers-MacBook-Air:solr-8.6.3 ravishersingh$ bin/post -c solrhelp
    > -filetypes html https://factorpad.com/tech/solr/index.html java -classpath /Users/ravishersingh/downloads/solr-8.6.3/dist/solr-core-8.6.3.jar
    > -Dauto=yes -Dfiletypes=html -Dc=solrhelp -Ddata=web org.apache.solr.util.SimplePostTool
    > https://factorpad.com/tech/solr/index.html SimplePostTool version
    > 5.0.0 Posting web pages to Solr url http://localhost:8983/solr/solrhelp/update/extract Entering auto mode.
    > Indexing pages with content-types corresponding to file endings html
    > Entering crawl at level 0 (1 links total,1 new) SimplePostTool:
    > WARNING: Solr returned an error #404 (Not Found) for url:
    > http://localhost:8983/solr/solrhelp/update/extract?literal.id=https%3A%2F%2Ffactorpad.com%2Ftech%2Fsolr%2Findex.html&literal.url=https%3A%2F%2Ffactorpad.com%2Ftech%2Fsolr%2Findex.html
    > SimplePostTool: WARNING: Response: <html> <head> <Meta
    > http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    > <title>Error 404 Not Found</title> </head> <body><h2>HTTP ERROR 404
    > Not Found</h2> <table>
    > <tr><th>URI:</th><td>/solr/solrhelp/update/extract</td></tr>
    > <tr><th>STATUS:</th><td>404</td></tr> <tr><th>MESSAGE:</th><td>Not
    > Found</td></tr> <tr><th>SERVLET:</th><td>default</td></tr> </table>
    > 
    > </body> </html> SimplePostTool: WARNING: IOException while reading
    > response: java.io.FileNotFoundException:
    > http://localhost:8983/solr/solrhelp/update/extract?literal.id=https%3A%2F%2Ffactorpad.com%2Ftech%2Fsolr%2Findex.html&literal.url=https%3A%2F%2Ffactorpad.com%2Ftech%2Fsolr%2Findex.html
    > SimplePostTool: WARNING: An error occurred while posting
    > https://factorpad.com/tech/solr/index.html 0 web pages indexed.
    > COMMITting Solr index changes to
    > http://localhost:8983/solr/solrhelp/update/extract... SimplePostTool:
    > WARNING: Solr returned an error #404 (Not Found) for url:
    > http://localhost:8983/solr/solrhelp/update/extract?commit=true
    > SimplePostTool: WARNING: Response: <html> <head> <Meta
    > http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    > <title>Error 404 Not Found</title> </head> <body><h2>HTTP ERROR 404
    > Not Found</h2> <table>
    > <tr><th>URI:</th><td>/solr/solrhelp/update/extract</td></tr>
    > <tr><th>STATUS:</th><td>404</td></tr> <tr><th>MESSAGE:</th><td>Not
    > Found</td></tr> <tr><th>SERVLET:</th><td>default</td></tr> </table>
    > 
    > </body> </html> Time spent: 0:00:01.044
    > ravishers-MacBook-Air:solr-8.6.3 ravishersingh$

对于正确解决问题的任何指导将不胜感激。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)