Hello Thomas,
After starting up vagrant:
> vagrant up
I monitor the Apache Karaf log:
> sudo tail -f /opt/karaf/data/log/karaf.log
followed by creating an object:
> curl -i -u fedoraAdmin:secret3 -X PUT localhost:8080/fcrepo/rest/object
response >> 201 Created
The karaf.log includes the following output:
org.fcrepo.camel.fcrepo-indexing-solr - 4.4.1.SNAPSHOT | Indexing Solr Object /object
Then I delete the newly created object:
> curl -i -ufedoraAdmin:secret3 -X DELETE localhost:8080/fcrepo/rest/object
response >> 204 No Content
The karaf.log includes the following output:
org.fcrepo.camel.fcrepo-indexing-solr - 4.4.1.SNAPSHOT | Deleting Solr Object /object
Searching the Solr index reveals that the "object" resource has indeed been removed.
Obviously I am doing something different than you. Can you describe your process for deleting a resource that is not subsequently being deleted in the Solr index?
Regarding your question of "How do i make those properties to be indexed in Solr"?, you must create a transformation that is aware of the new properties, in addition updating the Solr/schema.xml (which apparently you have done or verified). The default transformation syntax expected by fcrepo-indexing-solr is LDPath:
http://marmotta.apache.org/ldpath/language.htmlYou will need to:
1) create a new LDPath transform that includes the fields you want and
2) configure fcrepo-indexing-solr to use that new transform
For 1) below is a simple LDPath transform that includes the default properties along with your dc:description and dc:subject properties:
==================named:"nt-base.txt"==================
@prefix fedora : <
http://fedora.info/definitions/v4/repository#>
@prefix dc: <
http://purl.org/dc/elements/1.1/>
id = . :: xsd:string ;
title = dc:title :: xsd:string;
created = fedora:created :: xsd:dateTime;
last_modified = fedora:lastModified :: xsd:dateTime;
has_parent = fedora:hasParent :: xsd:string;
description = dc:description :: xsd:string;
subject = dc:subject :: xsd:string;
==================
Note you will need to update the transform above to rename the properties if they are named differently in your Solr/schema.xml.
For 2) you need to update the fcrepo-indexing-solr configuration within your Vagrant box as follows: