Apache Solr Tutorial 4: Indexing CSV Data
Автор: Rushdi Shams
Загружено: 2014-12-11
Просмотров: 21769
Описание:
This tutorial demonstrates how you can provide data in the CSV format to solr for indexing. It also demonstrates how to make customized query to solr.
To add books using CSV:
curl http://localhost:8983/solr/update?commitWithin=5000 -H 'Content-type:text/csv' -d '
id,cat,pubyear_i,title,author,series_s,sequence_i
book2,fantasy,1996,A Game of Thrones,George R.R. Martin,A Song of Ice and Fire,1
book3,fantasy,1999,A Clash of Kings,George R.R. Martin,A Song of Ice and Fire,2
book4,sci-fi,1951,Foundation,Isaac Asimov,Foundation Series,1
book5,sci-fi,1952,Foundation and Empire,Isaac Asimov,Foundation Series,2
book6,sci-fi,1992,Snow Crash,Neal Stephenson,Snow Crash,
book7,sci-fi,1984,Neuromancer,William Gibson,Sprawl trilogy,1
book8,fantasy,1985,The Black Company,Glen Cook,The Black Company,1
book9,fantasy,1965,The Black Cauldron,Lloyd Alexander,The Chronicles of Prydain,2
'
To display books with title "black":
http://localhost:8983/solr/query?q=title:black&fl=author,title
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: