Class UserSearchManager

java.lang.Object
org.jivesoftware.smack.Manager
org.jivesoftware.smackx.search.UserSearchManager

public final class UserSearchManager extends Manager
The UserSearchManager is a facade built upon Jabber Search Services (XEP-055) to allow for searching repositories on a Jabber Server. This implementation allows for transparency of implementation of searching (DataForms or No DataForms), but allows the user to simply use the DataForm model for both types of support.
XMPPConnection connection = …;
var searchService = UserSearchManager.getSearchServices(connection).get(0);
var searchManager = UserSearchManager.getInstanceFor(connection);
var sarchForm = searchManager.getSearchForm(searchService);
var fillableForm = searchForm.getFillableForm();

// Check for the required fields in the form and fill them
fillableForm.setAnswer("search", "John");

var results = searchOne.search(fillableForm, userSearchService);
// Use results