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 one year 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 one year ago
Yong Sheng Tan
39 × 2 Administrator
4K Views
1 Answer
one year ago
one year ago
Tags