custom tags added to external object coming in content tag after upload #1192
-
I am new to fscrawler. ###I have started fscrawler as a REST service as follows bin\fscrawler --rest --loop 0 --config_dir c:/FSCONFIGDIR resume_job ###Trying to upload document with custom fields as follows echo "This is my java resume" > test3.txt
echo "{ \"external\":{ \"zipcode\":\"08512\", \"city\":\"cranbury\", \"state\":\"NJ\"}}" > tags.txt
curl -F "file=@test3.txt" -F "tags=@tags.txt" -F "index=resume_job" "http://127.0.0.1:8080/fscrawler/_upload" {"ok":true,"filename":"test3.txt","url":"http://127.0.0.1:9200/resume_job/_doc/1be3ad6175e27573e78b7ed0d6d718c8"} ###custom tags added to content tag and overwriting the actual content. curl http://127.0.0.1:9200/resume_job/_doc/1be3ad6175e27573e78b7ed0d6d718c8?pretty {
"_index" : "resume_job",
"_type" : "_doc",
"_id" : "1be3ad6175e27573e78b7ed0d6d718c8",
"_version" : 1,
"_seq_no" : 25,
"_primary_term" : 1,
"found" : true,
"_source" : {
"content" : "{ \"external\":{ \"zipcode\":\"08512\", \"city\":\"cranbury\", \"state\":\"NJ\"}}",
"meta" : { },
"file" : { },
"path" : { }
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This is probably a problem with windows and curl... {
"_index" : "rest",
"_type" : "_doc",
"_id" : "1be3ad6175e27573e78b7ed0d6d718c8",
"_version" : 1,
"_seq_no" : 0,
"_primary_term" : 1,
"found" : true,
"_source" : {
"content" : "This is my java resume\n\n",
"meta" : { },
"file" : {
"extension" : "txt",
"content_type" : "text/plain; charset=ISO-8859-1",
"indexing_date" : "2021-07-20T09:24:55.883+00:00",
"filename" : "test3.txt"
},
"path" : {
"virtual" : "test3.txt",
"real" : "test3.txt"
},
"external" : {
"zipcode" : "08512",
"city" : "cranbury",
"state" : "NJ"
}
}
} Could you check the exact content of:
Did you by mistake submitted something like:
Instead of |
Beta Was this translation helpful? Give feedback.
This is probably a problem with windows and curl...
Using the same script on my laptop, with FSCrawler 2.7-SNAPSHOT, I'm getting at the end: