Example usage for com.liferay.portal.kernel.util StringPool PLUS

List of usage examples for com.liferay.portal.kernel.util StringPool PLUS

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util StringPool PLUS.

Prototype

String PLUS

To view the source code for com.liferay.portal.kernel.util StringPool PLUS.

Click Source Link

Usage

From source file:org.rsc.liferay.solr.SolrSpellCheckIndexWriter.java

License:Open Source License

protected String buildDeleteQuery(SearchContext searchContext, String type) {

    StringBundler sb = new StringBundler(14);

    sb.append(StringPool.PLUS);
    sb.append(Field.COMPANY_ID);// www.j a  va 2 s. co m
    sb.append(StringPool.COLON);
    sb.append(searchContext.getCompanyId());

    addQuerySeparator(sb);

    sb.append(Field.PORTLET_ID);
    sb.append(StringPool.COLON);
    sb.append(PortletKeys.SEARCH);

    addQuerySeparator(sb);

    addQueryType(sb, type);

    return sb.toString();
}