Se vei plan que i a pas brica de configuracion a far. Totes los fichièrs segon lor extension son legits, interpretats e cargats.
La basa es apasturada forra-borra.
La commanda
sudo bin/post -c gettingstarted example/exampledocs
dc@vertigo:/usr/local/share/apache-solr/solr$ sudo bin/post -c gettingstarted example/exampledocs Mot de passe : java -classpath /usr/local/share/apache-solr/solr-6.1.0/dist/solr-core-6.1.0.jar -Dauto=yes -Dc=gettingstarted -Ddata=files -Drecursive=yes org.apache.solr.util.SimplePostTool example/exampledocs SimplePostTool version 5.0.0 Posting files to [base] url http://localhost:8983/solr/gettingstarted/update... Entering auto mode. File endings considered are xml,json,jsonl,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log Entering recursive mode, max depth=999, delay=0s Indexing directory example/exampledocs (19 files, depth=0) POSTing file ipod_other.xml (application/xml) to [base] POSTing file books.csv (text/csv) to [base] POSTing file hd.xml (application/xml) to [base] POSTing file more_books.jsonl (application/json) to [base]/json/docs POSTing file solr-word.pdf (application/pdf) to [base]/extract POSTing file books.json (application/json) to [base]/json/docs POSTing file gb18030-example.xml (application/xml) to [base] POSTing file monitor2.xml (application/xml) to [base] POSTing file money.xml (application/xml) to [base] POSTing file manufacturers.xml (application/xml) to [base] POSTing file mem.xml (application/xml) to [base] POSTing file sample.html (text/html) to [base]/extract POSTing file sd500.xml (application/xml) to [base] POSTing file ipod_video.xml (application/xml) to [base] POSTing file mp500.xml (application/xml) to [base] POSTing file solr.xml (application/xml) to [base] POSTing file monitor.xml (application/xml) to [base] POSTing file utf8-example.xml (application/xml) to [base] POSTing file vidcard.xml (application/xml) to [base] 19 files indexed. COMMITting Solr index changes to http://localhost:8983/solr/gettingstarted/update... Time spent: 0:00:17.613
Las taulas dins la basa de donadas (MySQL) son aprestadas amb phpmyadmin. Lo nom del diccionari e l'ID unic a la taula, entre dos fan una clau unica (camp «id» de la basa de donadas) per la basa textuala SolR. Coma las taulas son barejadas dins SolR, lo ID fach amb un numero incremental e lo nom del diccionari garantís l'unicitat del document. Aquò's pas obligatòri mas dona la possibilitat de far de mesas a jorn sens se laguiar dels bessons (doblons). Dins l'esquema implicit de SolR, lo camp «id» es pres coma una clau unica, es per aquò que lo camp de la basa de donadas es nomenat atal.
Aquí tanben pas de lagui, sufís de causir l'opcion personalisada per atenher lo reglatge de cambiar la sordida en mòde quichat (compressé). Lo fichièr de sortida pòt èsser pesuc. (25/5 Mo). Al convit del navigador, enregistrar lo fichièr dins lo dorsièr de telecargament.
sudo bin/post -c moncor ~/*.json
[dc@labomio /usr/local/share/apache-solr/solr]$ sudo bin/post -c moncor ~/*.json Password: java -classpath /usr/local/share/apache-solr/solr-6.1.0/dist/solr-core-6.1.0.jar -Dauto=yes -Dc=moncor -Ddata=files org.apache.solr.util.SimplePostTool /home/dc/diccionari0.json /home/dc/diccionari1.json /home/dc/diccionari2.json SimplePostTool version 5.0.0 Posting files to [base] url http://localhost:8983/solr/moncor/update... Entering auto mode. File endings considered are xml,json,jsonl,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log POSTing file diccionari0..json (application/json) to [base]/json/docs POSTing file diccionari1..json (application/json) to [base]/json/docs POSTing file diccionari2..json (application/json) to [base]/json/docs 3 files indexed. COMMITting Solr index changes to http://localhost:8983/solr/moncor/update... Time spent: 0:01:40.275
Time spent: 0:01:40.275
1'40“ per 42.2 Mo !