You send a single JSON to be indexed, what you have in the JSON will be
indexed. If you want to search for a specific file name, you can (using your
JSON) use folder.files.name:something (that 'folder.files.name" can be used
anywhere in elasticsearch that accepts a field).
Thanks, it works with query "folder.files.name",
but "folder" objects are found, but like expected with all
"files" (matched and unmatched "files").
It is possible to search "folder" and "file" objects? I want something
like
a) curl -XGET http://...:9200/indexname/folder/_search?q=folder.path:xxx
=> "folder" objects are found
b) curl -XGET http://...:9200/indexname/folder/files/_search?q=folder.files.name:xxx
=> "file" objects are found
Therefore I thought that nested "file" object should be also "root"
object.
You send a single JSON to be indexed, what you have in the JSON will be
indexed. If you want to search for a specific file name, you can (using your
JSON) use folder.files.name:something (that 'folder.files.name" can be used
anywhere in elasticsearch that accepts a field).
Thanks, it works with query "folder.files.name",
but "folder" objects are found, but like expected with all
"files" (matched and unmatched "files").
It is possible to search "folder" and "file" objects? I want something
like
a) curl -XGET http://...:9200/indexname/folder/_search?q=folder.path:xxx
=> "folder" objects are found
b) curl -XGET http://
...:9200/indexname/folder/files/_search?q=folder.files.name:xxx
=> "file" objects are found
Therefore I thought that nested "file" object should be also "root"
object.
You send a single JSON to be indexed, what you have in the JSON will be
indexed. If you want to search for a specific file name, you can (using
your
JSON) use folder.files.name:something (that 'folder.files.name" can be
used
anywhere in elasticsearch that accepts a field).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.