Change Password

Please enter the password.
Please enter the password. Between 8-64 characters. Not identical to your email address. Contain at least 3 of: uppercase, lowercase, numbers, and special characters.
Please enter the password.
Submit

Change Nickname

Current Nickname:
Submit

Apply New License

License Detail

Please complete this required field.

  • Ultipa Graph V4

Standalone

Please complete this required field.

Please complete this required field.

The MAC address of the server you want to deploy.

Please complete this required field.

Please complete this required field.

Cancel
Apply
ID
Product
Status
Cores
Applied Validity Period(days)
Effective Date
Excpired Date
Mac Address
Apply Comment
Review Comment
Close
Profile
  • Full Name:
  • Phone:
  • Company:
  • Company Email:
  • Country:
  • Language:
Change Password
Apply

You have no license application record.

Apply
Certificate Issued at Valid until Serial No. File
Serial No. Valid until File

Not having one? Apply now! >>>

Product Created On ID Amount (USD) Invoice
Product Created On ID Amount (USD) Invoice

No Invoice

v5.0
Search
    English
    v5.0

      Query Acceleration

      This section introduces methods for managing various indexes and LTE status for properties in graphs.

      Index

      showIndex()

      Retrieves all indexes from the graph.

      Parameters

      • config: RequestConfig (Optional): Request configuration.

      Returns

      • List[Index]: The list of retrieved indexes.

      # Retrieves indexes in the graph 'miniCircle'
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      indexList = Conn.showIndex(requestConfig)
      for index in indexList:
          print(index.toJSON())
      

      {"id": "1", "name": "age_index", "properties": "year", "schema": "account", "status": "DONE", "size": null, "dbType": "DBNODE"}
      {"id": "2", "name": "test_index", "properties": "year,float", "schema": "account", "status": "DONE", "size": null, "dbType": "DBNODE"}
      {"id": "1", "name": "targetPostInd", "properties": "targetPost", "schema": "disagree", "status": "DONE", "size": null, "dbType": "DBEDGE"}
      

      showNodeIndex()

      Retrieves all node indexes from the graph.

      Parameters

      • config: RequestConfig (Optional): Request configuration.

      Returns

      • List[Index]: The list of retrieved indexes.

      # Retrieves node indexes in the graph 'miniCircle'
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      indexList = Conn.showNodeIndex(requestConfig)
      for index in indexList:
          print(index.toJSON())
      

      {"id": "1", "name": "age_index", "properties": "year", "schema": "account", "status": "DONE", "size": null, "dbType": "DBNODE"}
      {"id": "2", "name": "test_index", "properties": "year,float", "schema": "account", "status": "DONE", "size": null, "dbType": "DBNODE"}
      

      showEdgeIndex()

      Retrieves all edge indexes from the graph.

      Parameters

      • config: RequestConfig (Optional): Request configuration.

      Returns

      • List[Index]: The list of retrieved indexes.

      # Retrieves edge indexes in the graph 'miniCircle'
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      indexList = Conn.showEdgeIndex(requestConfig)
      for index in indexList:
          print(index.toJSON())
      

      {"id": "1", "name": "targetPostInd", "properties": "targetPost", "schema": "disagree", "status": "DONE", "size": null, "dbType": "DBEDGE"}
      

      dropIndex()

      Drops a specified index from the graph.

      Parameters

      • dbType: DBType: Type of the index (node or edge).
      • indexName: str: Name of the index.
      • config: RequestConfig (Optional): Request configuration.

      Returns

      • Response: Response of the request.

      # Drops the node index 'test_index' from the graph 'miniCircle'
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      response = Conn.dropIndex(DBType.DBNODE, "test_index", requestConfig)
      print(response.status.code.name)
      

      SUCCESS
      

      dropNodeIndex()

      Drops a specified node index from the graph.

      Parameters

      • indexName: str: Name of the index.
      • config: RequestConfig (Optional): Request configuration.

      Returns

      • Response: Response of the request.

      # Drops the node index 'test_index' from the graph 'miniCircle'
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      response = Conn.dropNodeIndex("test_index", requestConfig)
      print(response.status.code.name)
      

      SUCCESS
      

      dropEdgeIndex()

      Drops a specified edge index from the graph.

      Parameters

      • indexName: str: Name of the index.
      • config: RequestConfig (Optional): Request configuration.

      Returns

      • Response: Response of the request.

      # Drops the edge index 'targetPostInd' from the graph 'miniCircle'
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      response = Conn.dropEdgeIndex("targetPostInd", requestConfig)
      print(response.status.code.name)
      

      SUCCESS
      

      Full-text

      showFulltext()

      Retrieves all full-text indexes from the graph.

      Parameters

      • config: RequestConfig (Optional): Request configuration.

      Returns

      • List[Index]: The list of retrieved full-text indexes.

      # Retrieves full-text indexes in the graph 'miniCircle'
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      fulltextList = Conn.showFulltext(requestConfig)
      for fulltext in fulltextList:
          print(fulltext.toJSON())
      

      {"id": null, "name": "name", "properties": "name", "schema": "account", "status": "DONE", "size": null, "dbType": "DBNODE"}
      {"id": null, "name": "Content", "properties": "content", "schema": "review", "status": "DONE", "size": null, "dbType": "DBEDGE"}
      

      showNodeFulltext()

      Retrieves all node full-text indexes from the graph.

      Parameters

      • config: RequestConfig (Optional): Request configuration.

      Returns

      • List[Index]: The list of retrieved full-text indexes.

      # Retrieves node full-text indexes in the graph 'miniCircle'
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      fulltextList = Conn.showNodeFulltext(requestConfig)
      for fulltext in fulltextList:
          print(fulltext.toJSON())
      

      {"id": null, "name": "name", "properties": "name", "schema": "account", "status": "DONE", "size": null, "dbType": "DBNODE"}
      

      showEdgeFulltext()

      Retrieves all edge full-text indexes from the graph.

      Parameters

      • config: RequestConfig (Optional): Request configuration.

      Returns

      • List[Index]: The list of retrieved full-text indexes.

      # Retrieves edge full-text indexes in the graph 'miniCircle'
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      fulltextList = Conn.showEdgeFulltext(requestConfig)
      for fulltext in fulltextList:
          print(fulltext.toJSON())
      

      {"id": null, "name": "Content", "properties": "content", "schema": "review", "status": "DONE", "size": null, "dbType": "DBEDGE"}
      

      createFulltext()

      Creates a full-text index in the graph.

      Parameters

      • dbType: DBType: Type of the full-text index (node or edge).
      • schemaName: str: Name of the schema.
      • propertyName: str: Name of the property.
      • indexName: str: Name of the full-text index.
      • config: RequestConfig (Optional): Request configuration.

      Returns

      • JobResponse: Response of the request.

      # Creates a full-text index 'moviePlot' for the property 'plot' of the 'movie' nodes
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      response = Conn.createFulltext(DBType.DBNODE, 'movie', 'plot', 'moviePlot', requestConfig)
      jobID = response.jobId
      
      time.sleep(3)
      jobs = Conn.showJob(jobID, requestConfig)
      for job in jobs:
          print(job.status)
      

      FINISHED
      

      createNodeFulltext()

      Creates a node full-text index in the graph.

      Parameters

      • schemaName: str: Name of the schema.
      • propertyName: str: Name of the property.
      • indexName: str: Name of the full-text index.
      • config: RequestConfig (Optional): Request configuration.

      Returns

      • JobResponse: Response of the request.

      # Creates a full-text index 'moviePlot' for the property 'plot' of the 'movie' nodes
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      response = Conn.createNodeFulltext('movie', 'plot', 'moviePlot', requestConfig)
      jobID = response.jobId
      
      time.sleep(3)
      jobs = Conn.showJob(jobID, requestConfig)
      for job in jobs:
          print(job.status)
      

      FINISHED
      

      createEdgeFulltext()

      Creates an edge full-text index in the graph.

      Parameters

      • schemaName: str: Name of the schema.
      • propertyName: str: Name of the property.
      • indexName: str: Name of the full-text index.
      • config: RequestConfig (Optional): Request configuration.

      Returns

      • JobResponse: Response of the request.

      # Creates a full-text index 'agreeNotes' for the property 'notes' of the 'agree' edges
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      response = Conn.createEdgeFulltext('agree', 'notes', 'agreeNotes', requestConfig)
      jobID = response.jobId
      
      time.sleep(3)
      jobs = Conn.showJob(jobID, requestConfig)
      for job in jobs:
          print(job.status)
      

      FINISHED
      

      dropFulltext()

      Drops a full-text index from the graph.

      Parameters

      • dyType: DBType: Type of the full-text index (node or edge).
      • fulltextName: str: Name of the full-text index.
      • config: RequestConfig (Optional): Request configuration.

      Returns

      • Response: Response of the request.

      # Drops the node full-index 'moviePlot' from the graph 'miniCircle'
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      response = Conn.dropFulltext(DBType.DBNODE, 'moviePlot',requestConfig)
      print(response.status.code.name)
      

      SUCCESS
      

      LTE

      lte()

      Loads a property to the computing engine.

      Parameters

      • dbType: DBType: Type of the property (node or edge).
      • propertyName: str: Name of the property.
      • schemaName: str (Optional): Name of the schema; all schemas are specified when it is ignored.
      • config: RequestConfig (Optional): Request configuration.

      Returns

      • JobResponse: Response of the request.

      # Loads the property 'year' of 'account' nodes to the computing engine
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      response = Conn.lte(DBType.DBNODE, "year", "account", requestConfig)
      jobID = response.jobId
      
      time.sleep(3)
      jobs = Conn.showJob(jobID, requestConfig)
      for job in jobs:
          print(job.id, "-", job.status)
      

      53 - FINISHED
      53_1 - FINISHED
      53_2 - FINISHED
      53_3 - FINISHED
      

      ufe()

      Unloads a property from the computing engine.

      Parameters

      • dbType: DBType: Type of the property (node or edge).
      • propertyName: str: Name of the property.
      • schemaName: str (Optional): Name of the schema; all schemas are specified when it is ignored.
      • config: RequestConfig (Optional): Request configuration.

      Returns

      • Response: Response of the request.

      # Unloads the property 'year' of 'account' nodes from the computing engine
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      response = Conn.ufe(DBType.DBNODE, "year", "account", requestConfig)
      print(response.status.code.name)
      

      SUCCESS
      

      Full Example

      from ultipa import UltipaConfig, Connection, RequestConfig
      
      ultipaConfig = UltipaConfig()
      # URI example: ultipaConfig.hosts = ["mqj4zouys.us-east-1.cloud.ultipa.com:60010"]
      ultipaConfig.hosts = ["192.168.1.85:60061", "192.168.1.87:60061", "192.168.1.88:60061"]
      ultipaConfig.username = "<username>"
      ultipaConfig.password = "<password>"
      
      Conn = Connection.NewConnection(defaultConfig=ultipaConfig)
      
      # Retrieves indexes in the graph 'miniCircle'
      
      requestConfig = RequestConfig(graph="miniCircle")
      
      indexList = Conn.showIndex(requestConfig)
      for index in indexList:
          print(index.toJSON())
      
      Please complete the following information to download this book
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写