-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to denote datatype "nested" instead of Object - what differentiate object and nested in elastic search mapping in CrawlerData. #27
Comments
Any update on this ? |
I think you should use 'Foreach Processor' and 'JSON Processor' to create a pipeline. PUT _ingest/pipeline/yourpip I hope I can help you. |
As per the suggestion the PIPELINE BODY will look like this :: PUT :: localhost:9200/_ingest/pipeline/convert-object-nested-pipeline Response :: { My CrawlerData/userfiles.json file :: { Please note in the above json file if i remove pipeline name/ID it stoping working (not creating index into Elastic Search). But it work when i make it false. Our purpose it make the file array object filterable. Now the object in the file array are pure object - we have to make it nested. Therefore, we are trying to define the DATATYPE of files into NESTED - To achieve full text search (filter 100%). So that we can search the nested document after adding mapping like this : GET workspaces_userfiles/_search?pretty But as per your suggestion, we are again making it JSON object. May be the mapping structure and our json data structure help you in understanding. { { Hope you understand what is our issue. We have also tried to convert the field type : https://www.elastic.co/guide/en/elasticsearch/reference/current/convert-processor.html?utm_source=hacpai.com But "nested" data type not supported. Please help. Also, Please revert if any question. |
I am stuck while defining the mapping for a field (files) type that is nested rather then Object.
I am looking into solution to define the files type = "nested" otherwise filter will not work.
As we are to define the mapping in json file and preprocessor pipeline - we are already creating Array Object [{}]
but how to denote "nested" - what differentiate object and nested in elastic search mapping in CrawlerData.
They must be some way in "node-mongodb-es-connector" plugin which help us do so.
because [{}] is purely array object.
Please help.
The text was updated successfully, but these errors were encountered: