--
You received this message because you are subscribed to the Google Groups "Fedora Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fedora-communi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hello Peter,Thank you a lot for your answer.I'll try to give you more infos about my scenario. I'm pretty sure the Solr reindexing is somehow failing in my environment, probably due to some misconfiguration.I'm actually invoking the reindexing service as you said:http://<hostname>:<port>/reindexing/path/to/the/resourcewhere the URL to access the resource on fcrepo is:http://<hostname>:<port>/fcrepo/rest/path/to/the/resourceI'm using postman, setting the header Content-Type = application/json and with the following body:["broker:queue:solr.reindex"]This actually triggers some actions on Solr (I'm going to post parts of its log), but the result is not what I would expect.Anyway everything is running on a Docker cotnainer and these are the configurations in $KARAF_HOME/etc/org.fcrepo.camel.indexing.solr.cfg:error.maxRedeliveries=10fcrepo.checkHasIndexingTransformation=true#This resource is externalfcrepo.defaultTransform=http://<hostname>/ldpath_transform.txtldpath.service.baseUrl=http://localhost:9086/ldpathindexing.predicate=trueinput.stream=broker:queue:fedorasolr.reindex.stream=broker:queue:solr.reindexsolr.baseUrl=http://localhost:8080/solr/collection1solr.commitWithin=10filter.containers=http://localhost:8080/fcrepo/rest/auditNow let's suppose I have some resources in fcrepo already indexed on Solr. At some point I decide to modify my ldpath program adding the following line:
example_metadata_name = metadata:example_metadata_name :: xsd:string;and then I call the reindexing service. I would expect that the related document on Solr would now show the new field example_metadata_name. But that doesn't happen.Moreover, I manually deleted a specific document on Solr from its console. I expected the reindexing to recreate the document. That doesn't happen either.The only way the Solr indexing works at the moment is when I add/update a content within fcrepo.
KARAF2019-01-18 12:13:01,673 | INFO | tp221853157-1142 | ReindexingRouter | 208 - org.fcrepo.camel.fcrepo-reindexing - 4.7.2 | Initial indexing path: http://localhost:8080/fcrepo/rest/16/cd/40/7c/16cd407c-73cf-4f91-892f-52372beef4822019-01-18 12:13:01,846 | INFO | er[solr.reindex] | SolrRouter | 205 - org.fcrepo.camel.fcrepo-indexing-solr - 4.7.2 | Deleting Solr Object http://localhost:8080/fcrepo/rest/16/cd/40/7c/16cd407c-73cf-4f91-892f-52372beef4822019-01-18 12:13:01,952 | INFO | er[solr.reindex] | SolrRouter | 205 - org.fcrepo.camel.fcrepo-indexing-solr - 4.7.2 | Deleting Solr Object http://localhost:8080/fcrepo/rest/16/cd/40/7c/16cd407c-73cf-4f91-892f-52372beef482/binary/attachments2019-01-18 12:13:02,028 | INFO | er[solr.reindex] | SolrRouter | 205 - org.fcrepo.camel.fcrepo-indexing-solr - 4.7.2 | Deleting Solr Object http://localhost:8080/fcrepo/rest/16/cd/40/7c/16cd407c-73cf-4f91-892f-52372beef482/VIDEO_0000000115/MEDIA/VIDEO-MEDIA-2018-10-10-11-24-38-465-1BGE6tSOLRINFO - 2019-01-18 12:02:26.581; org.apache.solr.update.processor.LogUpdateProcessor; [collection1] webapp=/solr path=/update params={commitWithin=10} {delete=[http://localhost:8080/fcrepo/rest/16/cd/40/7c/16cd407c-73cf-4f91-892f-52372beef482 (-1622995733398421504)]} 0 7INFO - 2019-01-18 12:02:26.592; org.apache.solr.update.DirectUpdateHandler2; start commit{,optimize=false,openSearcher=false,waitSearcher=true,expungeDeletes=false,softCommit=true,prepareCommit=false}INFO - 2019-01-18 12:02:26.594; org.apache.solr.core.SolrCore; SolrIndexSearcher has not changed - not re-opening: org.apache.solr.search.SolrIndexSearcherINFO - 2019-01-18 12:02:26.594; org.apache.solr.update.DirectUpdateHandler2; end_commit_flushINFO - 2019-01-18 12:02:26.625; org.apache.solr.update.processor.LogUpdateProcessor; [collection1] webapp=/solr path=/update params={commitWithin=10} {delete=[http://localhost:8080/fcrepo/rest/16/cd/40/7c/16cd407c-73cf-4f91-892f-52372beef482/binary/attachments (-1622995733444558848)]} 0 2INFO - 2019-01-18 12:02:26.640; org.apache.solr.update.DirectUpdateHandler2; start commit{,optimize=false,openSearcher=false,waitSearcher=true,expungeDeletes=false,softCommit=true,prepareCommit=false}INFO - 2019-01-18 12:02:26.641; org.apache.solr.core.SolrCore; SolrIndexSearcher has not changed - not re-opening: org.apache.solr.search.SolrIndexSearcherINFO - 2019-01-18 12:02:26.641; org.apache.solr.update.DirectUpdateHandler2; end_commit_flushINFO - 2019-01-18 12:02:26.671; org.apache.solr.update.processor.LogUpdateProcessor; [collection1] webapp=/solr path=/update params={commitWithin=10} {delete=[http://localhost:8080/fcrepo/rest/16/cd/40/7c/16cd407c-73cf-4f91-892f-52372beef482/VIDEO_0000000115/MEDIA/VIDEO-MEDIA-2018-10-10-11-24-38-465-1BGE6t (-1622995733494890496)]} 0 0INFO - 2019-01-18 12:02:26.683; org.apache.solr.update.DirectUpdateHandler2; start commit{,optimize=false,openSearcher=false,waitSearcher=true,expungeDeletes=false,softCommit=true,prepareCommit=false}INFO - 2019-01-18 12:02:26.684; org.apache.solr.core.SolrCore; SolrIndexSearcher has not changed - not re-opening: org.apache.solr.search.SolrIndexSearcherINFO - 2019-01-18 12:02:26.684; org.apache.solr.update.DirectUpdateHandler2; end_commit_flushINFO - 2019-01-18 12:02:41.584; org.apache.solr.update.DirectUpdateHandler2; start commit{,optimize=false,openSearcher=false,waitSearcher=true,expungeDeletes=false,softCommit=false,prepareCommit=false}INFO - 2019-01-18 12:02:41.586; org.apache.solr.update.DirectUpdateHandler2; No uncommitted changes. Skipping IW.commit.INFO - 2019-01-18 12:02:41.591; org.apache.solr.update.DirectUpdateHandler2; end_commit_flush
Do you have any idea on where I am doing wrong?