import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.util.PortletKeys;
import org.apache.solr.client.solrj.SolrServer;
public class SolrSpellCheckIndexWriter
extends BaseGenericSpellCheckIndexWriter {
<BUG>public static final long GLOBAL_GROUP_ID = 0L;</BUG>
@Override
public void clearQuerySuggestionDictionaryIndexes(
SearchContext searchContext)
throws SearchException {
<BUG>StringBundler sb = getDeleteQuery(searchContext, QUERY_SUGGESTION_TYPE);
try {
_solrServer.deleteByQuery(sb.toString());
</BUG>
if (_commit) {

import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.util.PortletKeys;
import org.apache.solr.client.solrj.SolrServer;
public class SolrSpellCheckIndexWriter
extends BaseGenericSpellCheckIndexWriter {
@Override
public void clearQuerySuggestionDictionaryIndexes(
SearchContext searchContext)
throws SearchException {
String deleteQuery = createDeleteQuery(
searchContext, QUERY_SUGGESTION_TYPE);
try {
_solrServer.deleteByQuery(deleteQuery);
if (_commit) {
