About Features Downloads Getting Started Documentation Events Support GitHub

Love VuFind®? Consider becoming a financial supporter. Your support helps build a better VuFind®!

Site Tools


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.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
indexing:csv [2021/07/21 20:22] demiankatzindexing:csv [2021/08/03 11:58] – [1. Create configuration] demiankatz
Line 10: Line 10:
  
 ==== 1. Create configuration ==== ==== 1. Create configuration ====
-Create a configuration file in the "import" subdirectory of your [[configuration:local settings directory]]. You can use any filename that you like -- it usually makes sense to have a separate configuration file for each CSV file you load, since content and formatting is likely to be unique to each file. You can find an example in [[https://github.com/vufind-org/vufind/blob/dev/import/csv.ini|$VUFIND_HOME/import/csv.ini]]. This documents all of the available settings. You should make a local copy of this example and then configure the desired settings.+Create a configuration file in the "import" subdirectory of your [[configuration:local settings directory]]. You can use any filename that you like -- it usually makes sense to have a separate configuration file for each CSV file you load, since content and formatting is likely to be unique to each file. You can find an example in [[https://github.com/vufind-org/vufind/blob/dev/import/csv.ini|$VUFIND_HOME/import/csv.ini]]. This documents all of the available settings. You should make a local copy of this example (in your $VUFIND_LOCAL_DIR/import directory) and then configure the desired settings.
  
 +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 ==== ==== 2. Load the data ====
  
indexing/csv.txt · Last modified: 2023/11/10 13:00 by demiankatz