/**
 * Copyright 2014-2015 OpenSearchServer Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.opensearchserver.client.common.search.query;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

@XmlAccessorType(XmlAccessType.FIELD)
@JsonInclude(Include.NON_EMPTY)
public class SearchField {

	public static enum SearchFieldMode {
		PATTERN, TERM, PHRASE, TERM_AND_PHRASE;
	}

	public String field;
	public SearchFieldMode mode;
	public Double boost;
	public Double phraseBoost;
	public Integer phraseSlop;

	public SearchField() {
		field = null;
		mode = null;
		boost = null;
		phraseBoost = null;
		phraseSlop = null;
	}

	/**
	 * @param field
	 *            the field to set
	 */
	public SearchField setField(String field) {
		this.field = field;
		return this;
	}

	/**
	 * @param mode
	 *            the mode to set
	 */
	public SearchField setMode(SearchFieldMode mode) {
		this.mode = mode;
		return this;
	}

	/**
	 * @param boost
	 *            the boost to set
	 */
	public SearchField setBoost(Double boost) {
		this.boost = boost;
		return this;
	}

	/**
	 * @param phraseBoost
	 *            the phraseBoost to set
	 */
	public SearchField setPhraseBoost(Double phraseBoost) {
		this.phraseBoost = phraseBoost;
		return this;
	}

	/**
	 * @param phraseSlop
	 *            the phraseSlop to set
	 */
	public SearchField setPhraseSlop(Integer phraseSlop) {
		this.phraseSlop = phraseSlop;
		return this;
	}

}
@@ -1186,16 +1186,46 @@
 aseSlop;
+%0A%09public Integer booleanGroup;
 %0A%0A%09publi
@@ -1332,16 +1332,39 @@
 = null;%0A
+%09%09booleanGroup = null;%0A
 %09%7D%0A%0A%09/**
@@ -2154,9 +2154,196 @@
 is;%0A%09%7D%0A%0A
+%09/**%0A%09 * @param booleanGroup%0A%09 *            the booleanGroup to set%0A%09 */%0A%09public SearchField setBooleanGroup(Integer booleanGroup) %7B%0A%09%09this.booleanGroup = booleanGroup;%0A%09%09return this;%0A%09%7D%0A
 %7D

Add support of boolean group in SearchField