Skip to content

Implement elastic-search based OfferStore #3

@sboorlagadda

Description

@sboorlagadda

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions