Warning: This page has not been updated in over over a year and may be outdated or deprecated.
indexing:csv
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
indexing:csv [2021/06/23 18:20] – created demiankatz | indexing:csv [2023/11/10 13:00] (current) – demiankatz | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Importing CSV Files ====== | ====== Importing CSV Files ====== | ||
- | :!: This feature was added in VuFind | + | :!: This feature was added in VuFind® |
- | // Documentation currently under construction. // | + | Tabular data is commonly distributed as " |
+ | |||
+ | ===== Import Workflow ===== | ||
+ | |||
+ | Loading CSV files can be done with a two-step process: | ||
+ | |||
+ | ==== 1. Create configuration ==== | ||
+ | Create a configuration file in the " | ||
+ | |||
+ | The configuration file gives you a lot of control over how the CSV file is read, including settings to handle header rows, different character encodings, mapping of columns to Solr fields, manipulation of data values with custom code, and more. See the comments in the csv.ini example for full details. | ||
+ | ==== 2. Load the data ==== | ||
+ | |||
+ | Run the command line tool like this: | ||
+ | |||
+ | <code bash> | ||
+ | php $VUFIND_HOME/ | ||
+ | </ | ||
+ | |||
+ | In the above example, note that / | ||
+ | |||
+ | The ingest tool also supports some optional switches, including a --test-only mode which will display the result of the ingest on the console instead of sending it to Solr (useful for testing/ | ||
+ | |||
+ | <code bash> | ||
+ | php $VUFIND_HOME/public/index.php import/import-csv --help | ||
+ | </code> | ||
---- struct data ---- | ---- struct data ---- | ||
+ | properties.Page Owner : | ||
---- | ---- | ||
indexing/csv.1624472402.txt.gz · Last modified: 2021/06/23 18:20 by demiankatz