lundi 12 décembre 2016

What is the best Java Code Implementation pattern for Elasticsearch

I am looking for something like MongoDB implementation (shown below) to interact with the database.

Sample method defined in an interface (which extends MongoRepository interface):

public interface xyzTableData extends MongoRepository<primaryKey, primaryKeyDataType>{
          public List<String> getAttrsList();     
}

Any clue what would be the best way to implement it.

Aucun commentaire:

Enregistrer un commentaire