次のLuceneクエリがあり、それをSolr(v 3.5)クエリに変換する必要があります。
final String[] terms = splitInputStringOnSpace(input);
for (final String string : terms) {
booleanQuery.add(new TermQuery(new Term(DocumentFieldsConstants.HOLIDAY_FIELD, string)), Occur.MUST);
booleanQuery.add(new TermQuery(new Term(DocumentFieldsConstants.HOLIDAY_FIELD, string)), Occur.MUST);
}
booleanQuery.add(new TermQuery(new Term(DocumentFieldsConstants.DESCRIPTION_FIELD, "1")), Occur.SHOULD);
final String[] exactTerms = splitInputStringOnSpace2(input);
for (final String string : exactTerms)
{
final WildcardQuery wildcardQuery = new WildcardQuery(new Term(DocumentFieldsConstants.DESCRIPTION_FIELD, string));
booleanQuery.add(wildcardQuery, Occur.SHOULD);
}