Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
get username from userID

Using person-selector i am getting arraylist of long type for the names selected but they are having userId how to get username from the userId in java .

  
  
Posted 11 months ago
Votes Newest

Answers


Use the UserService to lookup the user id and obtain profile details like username.

Java BDK example, assuming users is an instance of UserService:

users.listUsersByIds(List.of(123456L)).get(0).getUsername()
  
  
Posted 10 months ago
Yong Sheng Tan
39 × 2 Administrator
2K Views
1 Answer
11 months ago
10 months ago
Tags