for (int i = 0; i < DEFAULT_FIELDS.length; i++) {
TermQuery termQuery = new TermQuery(getTerm(DEFAULT_FIELDS[i], searchTerm));
query.add(termQuery, false, false);
}
MetaDataRegistry registry = null;
MetaDataFieldRegistry fieldRegistry = null;
try {
registry = (MetaDataRegistry) this.manager.lookup(MetaDataRegistry.ROLE);
fieldRegistry = (MetaDataFieldRegistry) this.manager.lookup(MetaDataFieldRegistry.ROLE);
String[] namespaces = registry.getNamespaceUris();
for (int n = 0; n < namespaces.length; n++) {
ElementSet elementSet = registry.getElementSet(namespaces[n]);
Element[] elements = elementSet.getElements();
for (int e = 0; e < elements.length; e++) {
if (elements[e].isSearchable()) {
String field = fieldRegistry.getFieldName(namespaces[n], elements[e].getName());
TermQuery termQuery = new TermQuery(getTerm(field, searchTerm));