{"id":1902,"date":"2013-09-01T16:59:29","date_gmt":"2013-09-01T16:59:29","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=1902"},"modified":"2013-09-01T16:59:29","modified_gmt":"2013-09-01T16:59:29","slug":"fixing-solr-error-no-segments-file-found-in-nrtcachingdirectory","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fixing-solr-error-no-segments-file-found-in-nrtcachingdirectory\/","title":{"rendered":"Fixing Solr error &#8220;no segments* file found in NRTCachingDirectory&#8221;"},"content":{"rendered":"<p>If you try to run a Solr DataImportHandler by running HTTP commands (e.g. from a build script), you may hit an error like this:<\/p>\n<pre>\n\"no segments* file found in NRTCachingDirectory\"\n<\/pre>\n<p>It appears that this indicates that Solr didn&#8217;t initialize properly. You can fix this by adding a second request, to hit the core directly:<\/p>\n<pre>\nhttp:\/\/localhost:8080\/solr\/#\/core\/dataimport\/\/dataimport\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you try to run a Solr DataImportHandler by running HTTP commands (e.g. from a build script), you may hit an error like this: &#8220;no segments* file found in NRTCachingDirectory&#8221; It appears that this indicates that Solr didn&#8217;t initialize properly. You can fix this by adding a second request, to hit the core directly: http:\/\/localhost:8080\/solr\/#\/core\/dataimport\/\/dataimport<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[517],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/1902"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=1902"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/1902\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=1902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=1902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=1902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}