0
here에서 자습서를 진행하고 있습니다. 예제 파일 books.json이 solr과 성공적으로 동기화됩니다. books.json 파일은 다음과 유사합니다.json으로 solr 업데이트가 발생했습니다.
[
{
"id" : "978-0641723445",
"cat" : ["book","hardcover"],
"name" : "The Lightning Thief",
"author" : "Rick Riordan",
"series_t" : "Percy Jackson and the Olympians",
"sequence_i" : 1,
"genre_s" : "fantasy",
"inStock" : true,
"price" : 12.50,
"pages_i" : 384
}
]
cat 필드와 유사하게 필드 태그가 있습니다. 나는 내가
이{"responseHeader":{"status":400,"QTime":16},"error":{"msg":"ERROR: [doc=book_name] unknown field 'tags'","code":400}}
사람이 오류를 확인하고 시정하라고 제안 할 수 오류가 발생, 'http://localhost:8983/solr/update/json?commit=true' --data-binary @myJson.json -H 'Content-type:application/json'
컬
<field name="tags" type="string" indexed="true" stored="true" docValues="true" multiValued="true"/>
에의 schema.xml 파일을 편집 한?
'schema.xml '을 변경 한 후 Solr을 다시 시작했거나 (관리 인터페이스에서) 코어를 다시로드 했습니까? – MatsLindh
@MatsLindh 예 schema.xml을 변경 한 후 코어를 다시로드했습니다. – user3250183
Admin/(select collection)/및 'SchemaBrowser' 또는'Analysis' 또는'files/schema.xml'로 이동하면 필드가 표시됩니까? – MatsLindh