Hi guys, I would like to ask a question. I want to convert the mysql SQL structure to the JSON structure for elasticSearch. that is, the parameters to limit, sort, group by, select and where then you fall into the configuration of which are the operators for the conditions of AND = Must and OR should but what would be the complete list?
As I've said with /_sql/translate you won't see any difference with/without the IID alias.
You have to execute the query using /_sql without the translate and then you'll get a result where the column name is IID (the alias).
Something like that more or less I would like. Since by default the system has implementing MySQL then I want to implement a plugins which converts from SQL to ES in JSON and make the query directly to ES with the new structure in JSON to perform the query.
There is NO way currently to alias a field at query time through the ES search API.
You can find a couple of open issues in this area here and here.
If your aliases are static you have the option to define field aliases using the index mapping and then you can use the stored_fields to retrieve the fields you want by their alias.
Please notice that using the field aliases won't allow you to retrieve the original field from _source by its aliased name.
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.