Package com.liferay.portal.kernel.search

Examples of com.liferay.portal.kernel.search.Hits


      String middleName = null;
      String lastName = null;
      String screenName = null;
      String emailAddress = null;

      Hits hits = UserLocalServiceUtil.search(companyId, firstName, middleName, lastName, screenName,
          emailAddress, status, params, andSearch, QueryUtil.ALL_POS, QueryUtil.ALL_POS, sort);
      totalCount = hits.getLength();

    }
    catch (Exception e) {
      logger.error(e.getMessage(), e);
    }
View Full Code Here


      String screenName = trimExpresssion(filters.get("screenName"));
      String emailAddress = trimExpresssion(filters.get("emailAddress"));

      // For the sake of speed, search for users in the index rather than
      // querying the database directly.
      Hits hits = UserLocalServiceUtil.search(companyId, firstName, middleName, lastName, screenName,
          emailAddress, status, params, andSearch, first, liferayOneRelativeFinishRow, sort);

      List<Document> documentHits = hits.toList();

      logger.debug(
        ("filters firstName=[{0}] middleName=[{1}] lastName=[{2}] screenName=[{3}] emailAddress=[{4}] active=[{5}] andSearch=[{6}] startRow=[{7}] liferayOneRelativeFinishRow=[{8}] sortColumn=[{9}] reverseOrder=[{10}] hitCount=[{11}]"),
        firstName, middleName, lastName, screenName, emailAddress, status, andSearch, first,
        liferayOneRelativeFinishRow, sortField, sort.isReverse(), documentHits.size());
View Full Code Here

      String middleName = null;
      String lastName = null;
      String screenName = null;
      String emailAddress = null;

      Hits hits = UserLocalServiceUtil.search(companyId, firstName, middleName, lastName, screenName,
          emailAddress, status, params, andSearch, QueryUtil.ALL_POS, QueryUtil.ALL_POS, sort);
      totalCount = hits.getLength();

    }
    catch (Exception e) {
      logger.error(e.getMessage(), e);
    }
View Full Code Here

      String screenName = trimExpresssion((String) filters.get("screenName"));
      String emailAddress = trimExpresssion((String) filters.get("emailAddress"));

      // For the sake of speed, search for users in the index rather than
      // querying the database directly.
      Hits hits = UserLocalServiceUtil.search(companyId, firstName, middleName, lastName, screenName,
          emailAddress, status, params, andSearch, first, liferayOneRelativeFinishRow, sort);

      List<Document> documentHits = hits.toList();

      logger.debug(
        ("filters firstName=[{0}] middleName=[{1}] lastName=[{2}] screenName=[{3}] emailAddress=[{4}] active=[{5}] andSearch=[{6}] startRow=[{7}] liferayOneRelativeFinishRow=[{8}] sortColumn=[{9}] reverseOrder=[{10}] hitCount=[{11}]"),
        firstName, middleName, lastName, screenName, emailAddress, status, andSearch, first,
        liferayOneRelativeFinishRow, sortField, sort.isReverse(), documentHits.size());
View Full Code Here

TOP

Related Classes of com.liferay.portal.kernel.search.Hits

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.