---
title: "solr1.4使用（3）- 创建索引"
author: "brxonline"
date: "2010-08-08T16:48:30Z"
tags: ["F#", "Solr", "XML"]
categories: ["企业架构"]
slug: "solr1-4-3"
draft: false
lastmod: "2010-08-08T16:56:38Z"
id: 732123
url: "https://brxonline.iteye.com/blog/732123"
---

一.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