solr1.4使用(3)- 创建索引
一.solr 创建索引所需文件的格式: 1.xml格式 test.xml 5432a 2007-12-31T09:40:00Z 5432a 2007-12-31T09:40:00Z 2.binary格式 仅solrj可用 3.csv格式 4.pdf,doc,xls,ppt等格式 5.数据库直接导入(DIH) 二、创建索引的方式 1.http://localhost:8983/solr/update -H 'Content-type:text/xml; charset=utf-8' --data-binary @test.xml 2.http://localhost:8983/solr/update -F solr.body=@test.xml 3.http://localhost:8983/solr/update -F stream.file=/tmp/test.xml 4.csv 5.solrcell 5.dih 6.solr4j 7.phpclient