OfferStore is the abstraction and provides APIs to save new offers and for searching request tags to find matching offers.
The current implementation provides an in-memory implementation using a hashmap as the underlying data structure.
This issue is to provide an implementation for elastic-search based OfferStore
One has to implement below two methods:
public int insert(List<Offer> offers);
public List<Offer> search(Map<String, String> tags);
As of now BASE does not have APIs to retrieve new offers, so it is upto implementation of insert method to check for offers that are already inserted (in case if the underlying storage cannot handle duplicates).
OfferStore is the abstraction and provides APIs to save new offers and for searching request tags to find matching offers.
The current implementation provides an in-memory implementation using a hashmap as the underlying data structure.
This issue is to provide an implementation for elastic-search based
OfferStoreOne has to implement below two methods:
As of now BASE does not have APIs to retrieve new offers, so it is upto implementation of
insertmethod to check for offers that are already inserted (in case if the underlying storage cannot handle duplicates).