One thought I had was that there might be different types of the field, which is was ("path" was just a text without any analyzer or anything).
But I recreated the index and reindexed the documents with the same settings as the index created by FSCrawler has, but it's still encoded every " as \" and every \ as \\
"path": {
"type": "keyword",
"fields": {
"fulltext": {
"type": "text"
},
"tree": {
"type": "text",
"analyzer": "fscrawler_path",
"fielddata": true
}
}
},
"virtual": {
"type": "keyword",
"fields": {
"fulltext": {
"type": "text"
},
"tree": {
"type": "text",
"analyzer": "fscrawler_path",
"fielddata": true
}
}
}
*virtual is from FSCrawler and "path" is from Logstash/JDBC/SQL Server