Solr에 익숙하지 않고 명령 줄에서 json 문서의 색인을 생성하려고 시도했지만 학습을 위해 간단한 json 게시를 시도했지만 HTTP 오류 405 메소드 게시가이 URL 오류로 지원되지 않습니다. 내 컬렉션에 데이터. 필자는 다음과 같은 오류에 직면 : 초보자를 메신저로solr/index.html
C:\Users\MJ\Downloads\solr-6.4.1\bin>curl -X POST -H 'Content-
Type:application/json' "http://localhost:8983/solr/#/~collections/mycollection/update/json/docs" --data-binary ' {"id":"1","title":"doc1"}'
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 405 HTTP method POST is not supported by this URL</title>
</head>
<body><h2>HTTP ERROR 405</h2>
<p>Problem accessing /solr/index.html. Reason:
<pre> HTTP method POST is not supported by this URL</pre></p>
</body>
</html>
[1/2]: id:1' --> <stdout>
--_curl_--id:1'
curl: (6) Couldn't resolve host 'id'
[2/2]: title:doc1' --> <stdout>
--_curl_--title:doc1'
curl: (3) Illegal port number
내가 컬렉션과 코어에 대한 약간의 지식을 가지고, pls는 저를이 오류의 원인을 알려주나요 .. 감사합니다!
나는 그 오류가 더 이상 발생하지 않았으며 현재 시도하고있다. 그러나 하나의 오류가 있습니다 : "curl -X POST -H 'Content-Type : application/json'-d http : // localhost : 8983/solr/informationretrieval/update/json/docs'[{"id ": { "responseHeader": { "status": 0, "QTime", "1", "제목": "문서 1"}, { "id": "2", " : 1}} curl : (3) [globbing] 3 열의 잘못된 범위 지정 – user3387677
다른 문제입니다. http://stackoverflow.com/questions/42926835/curl-3-globbing-bad-range-specification- in-column-3.이 문제는 다른 사람들이 같은 문제에 부딪 힐 때 해결됩니다. 맞습니까? –