package com.arms.egovframework.javaservice.esframework.esquery.mustnot;

import org.opensearch.index.query.AbstractQueryBuilder;
import org.opensearch.index.query.QueryBuilders;
import org.opensearch.index.query.TermQueryBuilder;

public class TermQueryMustNot extends MustNot<TermQueryBuilder> {

	private TermQueryBuilder termQueryBuilder;

	public <T> TermQueryMustNot(String name, T value){
		if(name!=null&&value!=null){
			this.termQueryBuilder = QueryBuilders.termQuery(name, value);
		}
	}

	@Override
	public AbstractQueryBuilder<TermQueryBuilder> abstractQueryBuilder() {
		return termQueryBuilder;
	}
}
