Add document (-ADOC) command
The -ADOC command adds one or more files on the file system as a document in memory and returns the document ID to the map. Alternatively, the-ADOC command can add dynamic data from a map as a document in memory and return the document ID to the map.
>>-+------------------------------+-- -ADOC--+---------------+->< +- -URL--file_URL--------------+ '-data_from_map-' | .-;--------. | | V | | '-+- -BATCH-+-----file_URL-+---' '- -H-----'
- -URL
-
Adds a single file, specified by a file URL, as a document in memory and returns a document ID to the map. The -URL keyword is optional, but you must specify one of the -BATCH, -URL , or data_from_map options on the-ADOC command.
-BATCH
- -H
-
Adds multiple files, specified by a list of semi-colon-delimited (;) file URLs, to documents in memory and returns a list of semi-colon-delimited document IDs to the map. The -BATCH keyword is optional, but you must specify one of the -BATCH, -URL , or data_from_map options on the -ADOC command.
- data_from_map
-
Adds dynamic data from a map as a document in memory and returns the document ID to the map. The data_from_map is optional, but you must specify one of the -BATCH, -URL, or data_from_map options on the -ADOC command.
Examples
The following example adds the parsewds.txt file as a document in memory and returns the document ID to the map:
GET("SPE", "-URL file://C:\parsewds.txt -ADOC")
The following example adds the Hello World!! text string as a document in memory and returns the document ID to the map:
GET("SPE", "-ADOC", "Hello World!!")