Hi Adrian, We tried the elastic-search module when it was available and had your use-case in mind with facets. But as far as I remember I don't think it was possible to use aggregations (at least from the sparql side of things). I understood the elasticsearch-module as an alternative to the lucene module, used in a similar manner, using the same extension function (text:query).
Facet/aggregation was not implemented as extension functions in SPARQL and I believe that it also used the same abstraction described in the jena-text docs: > One Jena *triple* equals one Lucene *document* which makes aggregations/facets not available or usable neither from the Elasticsearch APIs. We switched to jena-text with Lucene after some weeks, which didn't have aggregations either, but there was much more activity and usage for the module, and the options for configuring from the assembler files were much richer. Just a disclaimer that this was a long time ago, and I could have misunderstood how things worked. At the moment I'm unsure if I inspected and looked at the Elasticsearch APIs directly to check the structure of the documents in the index itself, after indexing. Best regards, Øyvind On Wed, Jun 14, 2023 at 11:48 AM Adrian Gschwend <[email protected]> wrote: > > According to https://jena.apache.org/documentation/query/text-query.html > there was support for text search using Elastic instead of Lucene in > Fuseki at some point at least. But from what I can see it was removed > (?) in 4.x. > > We have a use-case where faceted search is important and this is quite > hard in SPARQL 1.1, paging & counting is less than ideal. Either the > queries get very complex or the counts are wrong. > > What was the reason for removing that code, lack of maintenance? If so, > any ideas on how much work it would be to bring this to the 4.x codebase > again? I guess it might make sense to switch to OpenSearch as well > instead with the Elastic license issues. > > Anyone has or had Elastic in use in Fuseki & can share some experience? > I found some posts here and there but not much details about how the > integration worked. > > regards > > Adrian > >
