I am trying to implement full text search on AWS Neptune (engine 1.0.4.2) with AWS OpenSearch.
A GET amazon_neptune/_search
on OpenSearch returns:
{
"took": 5,
"timed_out": false,
"_shards": {
"total": 2,
"successful": 2,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 100000,
"relation": "gte"
},
"max_score": 1.0,
"hits": [
{
"_index": "amazon_neptune",
"_type": "_doc",
"_id": "1234567890",
"_score": 1.0,
"_source": {
"entity_id": "aeeA6GHI6ZvK4zOP",
"document_type": "rdf-resource",
"predicates": {
"https://schema.org/description": [
{
"value": "value"
}
]
}
}
}
]
}
}
Now, when trying to execute federated query using this SPARQL:
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX neptune-fts: <http://aws.amazon.com/neptune/vocab/v01/services/fts#>
PREFIX hint: <http://aws.amazon.com/neptune/vocab/v01/QueryHints#>
SELECT ?res WHERE {
SERVICE neptune-fts:search {
neptune-fts:config neptune-fts:endpoint 'vpc-{url}.eu-central-1.es.amazonaws.com' .
neptune-fts:config neptune-fts:queryType 'term' .
neptune-fts:config neptune-fts:field 'Neptune#fts.document_type' .
neptune-fts:config neptune-fts:query "rdf-resource" .
neptune-fts:config neptune-fts:return ?res .
}
}
...or Lucene queries like:
SELECT * WHERE {
SERVICE neptune-fts:search {
neptune-fts:config neptune-fts:endpoint 'https://vpc-{url}.eu-central-1.es.amazonaws.com' .
neptune-fts:config neptune-fts:queryType 'simple_query_string' .
neptune-fts:config neptune-fts:query "predicates.\\schema\\description.value:value" .
neptune-fts:config neptune-fts:return ?res .
}
}
No matter what query I use, I end up with this error:
{
"code": "BadRequestException",
"detailedMessage": "An IOException happened while fetching data from ES",
"requestId": "{id}"
}
I have tried different variations of the SPARQL federated query, I always end up with the "An IOException happened while fetching data from ES".
So, what's going on here?
Thanks in advance.