child.obtainQueryTerms(terms);
ArrayList<Query> alist = new ArrayList<Query>();
child.getTerms(alist);
SingleTermQuery[] queryTerms = (SingleTermQuery[])alist.toArray(tmpSTQ);
for (int i=0; i<queryTerms.length; i++)
terms.setTermProperty(queryTerms[i].getTerm(), new TermInFieldModifier(field, required));
}