Change Password

Input error
Input error
Input error
Submit

Change Nickname

Current Nickname:
Submit
v4.0

Index

Show Index

  • The Connection object provides method showIndex to show index.

    • Show all node indexes

      from ultipa import Connection, ULTIPA_REQUEST, ULTIPA
      conn = Connection(host='host:port', username="root", password="root")
      ret = conn.showIndex()
      print(ret.toJSON())
      
    • Show all edge indexes

      from ultipa import Connection, ULTIPA_REQUEST, ULTIPA
      conn = Connection(host='host:port', username="root", password="root")
      ret = conn.showIndex(request=ULTIPA_REQUEST.ShowIndex(type=ULTIPA.DBType.DBNODE))
      print(ret.toJSON())
      
    • Show all indexes (both node and edge)

      from ultipa import Connection, ULTIPA_REQUEST, ULTIPA
      conn = Connection(host='host:port', username="root", password="root")
      ret = conn.showIndex(request=ULTIPA_REQUEST.ShowIndex(type=ULTIPA.DBType.DBEDGE))
      print(ret.toJSON())
      
  • The Connection object provides method showFulltext to show fulltext index.

    • Show all node fulltext indexes

      from ultipa import Connection, ULTIPA_REQUEST, ULTIPA
      conn = Connection(host='host:port', username="root", password="root")
      ret = conn.showFulltext(request=ULTIPA_REQUEST.ShowIndex(type=ULTIPA.DBType.DBNODE))
      print(ret.toJSON())
      
    • Show all edge fulltext indexes

      from ultipa import Connection, ULTIPA_REQUEST, ULTIPA
      conn = Connection(host='host:port', username="root", password="root")
      ret = conn.showFulltext(request=ULTIPA_REQUEST.ShowIndex(type=ULTIPA.DBType.DBEDGE))
      print(ret.toJSON())
      
    • Show all fulltext indexes (both node and edge)

      from ultipa import Connection, ULTIPA_REQUEST, ULTIPA
      conn = Connection(host='host:port', username="root", password="root")
      ret = conn.showFulltext()
      print(ret.toJSON())
      

Create Index

  • The Connection object provides method createIndex to create index.

    • Create index for a node property

      from ultipa import Connection, ULTIPA_REQUEST, ULTIPA
      conn = Connection(host='host:port', username="root", password="root")
      ret = conn.createIndex(ULTIPA_REQUEST.CreateIndex(type=ULTIPA.DBType.DBNODE,
                             schema='test', property='test_str'))
      print(ret.toJSON())
      
    • Create index for an edge property

      from ultipa import Connection, ULTIPA_REQUEST, ULTIPA
      conn = Connection(host='host:port', username="root", password="root")
      ret = conn.createIndex(ULTIPA_REQUEST.CreateIndex(type=ULTIPA.DBType.DBEDGE,
                             schema='test', property='test_str'))
      print(ret.toJSON())
      
  • The Connection object provides method createFulltext to create fulltext index.

    • Create fulltext index for a node property

      from ultipa import Connection, ULTIPA_REQUEST, ULTIPA
      conn = Connection(host='host:port', username="root", password="root")
      ret = conn.createFulltext(ULTIPA_REQUEST.CreateFulltext(type=ULTIPA.DBType.DBNODE,
                               schema='test', property='test_str', name='testEdgeFulltext'))
      print(ret.toJSON())
      
    • Create fulltext index for an edge property

      from ultipa import Connection, ULTIPA_REQUEST, ULTIPA
      conn = Connection(host='host:port', username="root", password="root")
      ret = conn.createFulltext(ULTIPA_REQUEST.CreateFulltext(type=ULTIPA.DBType.DBEDGE,
                               schema='test', property='test_str', name='testEdgeFulltext'))
      print(ret.toJSON())
      

Drop Index

  • The Connection object provides method dropIndex to delete index.

    • Delete index of a node property

      from ultipa import Connection, ULTIPA_REQUEST, ULTIPA
      conn = Connection(host='host:port', username="root", password="root")
      ret = conn.dropIndex(ULTIPA_REQUEST.DropIndex(type=ULTIPA.DBType.DBNODE,
                           schema='test', property='test_str'))
      print(ret.toJSON())
      
    • Delete index of an edge property

      from ultipa import Connection, ULTIPA_REQUEST, ULTIPA
      conn = Connection(host='host:port', username="root", password="root")
      ret = conn.dropIndex(ULTIPA_REQUEST.DropIndex(type=ULTIPA.DBType.DBEDGE,
                           schema='test', property='test_str'))
      print(ret.toJSON())
      
  • The Connection object provides method dropFulltext to delete fulltext index.

    • Delete fulltext index of a node property

      from ultipa import Connection, ULTIPA_REQUEST, ULTIPA
      conn = Connection(host='host:port', username="root", password="root")
      ret = conn.dropFulltext(ULTIPA_REQUEST.DropFulltext(type=ULTIPA.DBType.DBNODE,
                              name='testNodeFulltext'))
      print(ret.toJSON())
      
    • Delete fulltext index of an edge property

      from ultipa import Connection, ULTIPA_REQUEST, ULTIPA
      conn = Connection(host='host:port', username="root", password="root")
      ret = conn.dropFulltext(ULTIPA_REQUEST.DropFulltext(type=ULTIPA.DBType.DBEDGE,
                              name='testEdgeFulltext'))
      print(ret.toJSON())
      
Please complete the following information to download this book
*
公司名称不能为空
*
公司邮箱必须填写
*
你的名字必须填写
*
你的电话必须填写
*
你的电话必须填写