Page tree
Skip to end of metadata
Go to start of metadata

The PartitionId  field expression returns a partition id for all documents indicating the partition containing the document.

 

    PARTITIONID() AS ALIAS

    • ALIAS - Field name for the resulting value.
    PARTITIONID() as partition.id
    QueryRequest request = new QueryRequest("*:*)");
    request.addField(new PartitionId().as("partition.id"));
    // ... (Perform Search)
    

     

     

    • No labels