{"action":"closed","issue":{"url":"https://api.github.com/repos/dadoonet/fscrawler/issues/523","repository_url":"https://api.github.com/repos/dadoonet/fscrawler","labels_url":"https://api.github.com/repos/dadoonet/fscrawler/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/dadoonet/fscrawler/issues/523/comments","events_url":"https://api.github.com/repos/dadoonet/fscrawler/issues/523/events","html_url":"https://github.com/dadoonet/fscrawler/issues/523","id":298840828,"node_id":"MDU6SXNzdWUyOTg4NDA4Mjg=","number":523,"title":"Unable to ingest documents into Elasticsearch","user":{"login":"amarrg","id":7323866,"node_id":"MDQ6VXNlcjczMjM4NjY=","avatar_url":"https://avatars0.githubusercontent.com/u/7323866?v=4","gravatar_id":"","url":"https://api.github.com/users/amarrg","html_url":"https://github.com/amarrg","followers_url":"https://api.github.com/users/amarrg/followers","following_url":"https://api.github.com/users/amarrg/following{/other_user}","gists_url":"https://api.github.com/users/amarrg/gists{/gist_id}","starred_url":"https://api.github.com/users/amarrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amarrg/subscriptions","organizations_url":"https://api.github.com/users/amarrg/orgs","repos_url":"https://api.github.com/users/amarrg/repos","events_url":"https://api.github.com/users/amarrg/events{/privacy}","received_events_url":"https://api.github.com/users/amarrg/received_events","type":"User","site_admin":false},"labels":[{"id":529426291,"node_id":"MDU6TGFiZWw1Mjk0MjYyOTE=","url":"https://api.github.com/repos/dadoonet/fscrawler/labels/wait%20for%20feedback","name":"wait for feedback","color":"cccccc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-21T04:46:45Z","updated_at":"2018-08-03T15:01:48Z","closed_at":"2018-08-03T15:01:48Z","author_association":"NONE","body":"I have followed the exact steps to start fscrawler as mentioned in \"Starting with a REST gateway\" in https://github.com/dadoonet/fscrawler. When I  try to ingest a sample text file, I am getting this response: \r\n\r\n```\r\n{\"ok\":true,\"filename\":\"text.txt\",\"url\":\"http://127.0.0.1:9200/e4u/doc/34d361a5942e67697d17534f37ed5a9\"}\r\n```\r\n\r\nbut when I open the URL in elasticsearch I get this output:\r\n\r\n```\r\n_index | \"e4u\"\r\n_type | \"doc\"\r\n_id | \"34d361a5942e67697d17534f37ed5a9\"\r\nfound | false\r\n```\r\n\r\nElasticsearch is also throwing this error:\r\n\r\n```\r\n[2018-02-21T10:06:00,861][DEBUG][o.e.a.b.TransportShardBulkAction] [e4u][2] failed to execute bulk item (index) BulkShardRequest [[e4u][2]] containing [index {[e4u][doc][34d361a5942e67697d17534f37ed5a9], source[{\"content\":\"This is my text\\n\\n\",\"meta\":{\"raw\":{\"X-Parsed-By\":\"org.apache.tika.parser.DefaultParser\",\"Content-Encoding\":\"ISO-8859-1\",\"resourceName\":\"text.txt\",\"Content-Type\":\"text/plain; charset=ISO-8859-1\"}},\"file\":{\"content_type\":\"text/plain; charset=ISO-8859-1\",\"indexing_date\":\"2018-02-21T04:35:56.559+0000\",\"filename\":\"text.txt\"},\"path\":{\"virtual\":\"text.txt\",\"real\":\"text.txt\"}}]}]\r\norg.elasticsearch.index.mapper.MapperParsingException: failed to parse [path]\r\n```\r\n\r\nVersions used:\r\n\r\nElasticsearch: \r\nVersion: 6.2.1, Build: 7299dc3/2018-02-07T19:34:26.990113Z, JVM: 1.8.0_161\r\nFSCrawler: 2.4\r\n\r\nCan somebody suggest what could be the issue?"}}
{"actor":{"display_login":"dadoonet"}}