Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (30 sloc) 1.25 KB

EARQ = ElasticSearch + ARQ

EARQ is a combination of ARQ and ElasticSearch. It gives ARQ the ability to perform free text searches using an ElasticSearch cluster. ElasticSearch indexes are additional information for accessing the RDF graph, not storage for the graph itself.

This is experimental (and unsupported).

How to use it

This is how you build an index from a Jena Model:

ModelIndexerString indexer = new ModelIndexerString("earq_index");

This is how you configure ARQ to use ElasticSearch:

IndexSearcher searcher = IndexSearcherFactory.create(Type.ELASTICSEARCH, "earq_index") ;
EARQ.setDefaultIndex(searcher) ;

This is an example of a SPARQL query using the sarq:search property function:

PREFIX earq: <>
    ?doc ?p ?lit .
    (?lit ?score ) earq:search "+text" .


The design and part of the code has been inspired from LARQ, see:


  • ... still broken
  • Remove LARQ reference from ModelIndexerSubject