params |
Object
|
Properties
| Name |
Type |
Attributes |
Description |
file |
ReadableStream
|
<optional>
|
The document file to convert. May be a ReadableStream or Buffer |
metadata |
Object
|
|
Metadata array of Object's where each object contains 'name' and 'value' |
config |
Object
|
|
Configuration for the conversion and indexing. The conversion config needs
to be in a 'convert_document' object. This can include configuration for 'pdf', 'word'
and 'normalized_html' phases of the conversion process. The indexing config needs to be
in a 'retrieve_and_rank' object. The 'retrieve_and_rank' object has the following fields:
'dry_run' - boolean value, true if a dry run is to be performed, false to actually index,
'service_instance_id' - The serviceGuid of your instance of the retrieve and rank
service (required if dry_run=false), 'cluster_id' - The Solr cluster id for your retrieve
and rank service instance (required if dry_run=false), 'search_collection' - The name of
your Solr search collection from your retrieve and rank service instance (required if
dry_run=false), and 'fields' - Configuration information for field 'mappings', fields
to 'include', and fields to 'exclude' during indexing (exclude takes precedence over include) |
|