The idea is to use data in elasticsearch using e.g. filebeat httpjson to load elasticsearch with data/dataset/index.
The question is, how to use this data for app-search?
New to elasticsearch / app search and feels strange that this is so "disconnected". Using that that already exists would speed up or simplify a lot, and "it's the same product". Should be able to link the data and if a reindex is needed some kind of event might be used?
Hi @frolko, I am happy to say that what you want is now already possible, albeit as a Technical Preview feature. You can read more about it in our documentation:
Also, this guide about using Elasticsearch search API instead of the Search API that's part of App Search might be of use:
I've created a http json with pagination called 'accounts'. And it goes thru a pipeline reformat the data to match search needs (e.g. 'accountType' is renamed 'account_type')
Now somehow to get the indecies to be named 'search-' as a start.
If I run PUT .ds-logs-accounts-default-2022.06.20-000001/_alias/search-accounts I get the error
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "The provided expressions [.ds-logs-accounts-default-2022.06.20-000001] match a backing index belonging to data stream [logs-accounts-default]. Data stream backing indices don't support aliases."
}
],
"type" : "illegal_argument_exception",
"reason" : "The provided expressions [.ds-logs-accounts-default-2022.06.20-000001] match a backing index belonging to data stream [logs-accounts-default]. Data stream backing indices don't support aliases."
},
"status" : 400
}
Testing the data stream 'PUT logs-accounts-default/_alias/search-accounts' works but is not selectable when trying to create 'app search engine'
It worked. An engine was created.
I think that what's different in your setup is the fact that your alias points to the data stream, and not an index. And the underlying index can't be aliased because it's just not supported.
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.