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

The StringLength  field expression returns the length of a string argument.  

 

    STRINGLENGTH(FIELDEXPRESSION) AS ALIAS

    • FIELDEXPRESSION - The stored field to operate on.
    • ALIAS - Field name for the resulting value.
    STRINGLENGTH(text) as text.length
    QueryRequest request = new QueryRequest("*:*)");
    request.addField(new StringLength(new StoredField("text")).as("text.length"));
    // ... (Perform Search)
    
    • No labels