Load an LDPATH program
The following is an example of loading a LDPATH program called "custom".
curl -X POST -H "Content-Type: application/rdf+ldpath" -d "@post.txt" "http://localhost:8080/rest/fedora:system/fedora:transform/fedora:ldpath/custom/nt:base/fcr:content" post.txt: @prefix fcrepo : <http://fedora.info/definitions/v4/repository#> id = . :: xsd:string ; title_tsi = dc:title :: xsd:string; uuid_ssi = fcrepo:uuid :: xsd:string ;
Note that for solr indexing the field name (such as id, title, and uuid) must match the fields that are defined in the solr schema.xml (see solr documentation: https://cwiki.apache.org/confluence/display/solr/Solr+Field+Types). One recommended schema.xml is provided by hydra-jetty (https://github.com/projecthydra/hydra-jetty/blob/master/solr/development-core/conf/schema.xml) which has a robust set of default dynamic fields.