Uploaded image for project: 'S2Graph'
  1. S2Graph
  2. S2GRAPH-151 Provide global index.
  3. S2GRAPH-153

Implement IndexProvider(for Mixed IndexType) class

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Done
    • Major
    • Resolution: Done
    • 0.2.0
    • 0.2.0
    • None
    • None

    Description

      Currently, there is no global index layer in s2graph. One idea to implement global index layer is using search engine and index Edge/Vertex based on their property with Index Configuration.

      In this task, IndexProvider trait, which can be extended by Lucene, ElasticSearch, Solr, etc should be implemented and provide following methods on Edge/Vertex.

      • Indexing
      - def mutateVertices(vertices: Seq[S2Vertex]): Seq[Boolean]
      - def mutateEdges(edges: Seq[S2Edge]): Seq[Boolean]
      
      • Querying
      - def fetchEdgeIds(queryString: String): java.util.List[EdgeId]
      - def fetchVertexIds(queryString: String): java.util.List[VertexId]
      

      I can't decide if return type of Querying APIs should be changed into Future or not so please give any help on this.

      Attachments

        Issue Links

          Activity

            People

              steamshon Do Yung Yoon
              steamshon Do Yung Yoon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 168h
                  168h
                  Remaining:
                  Remaining Estimate - 168h
                  168h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified