Clears an attribute's facet refinements for the next queries.
<p>
<b>This method resets the current page to 0.</b>

@param attribute the attribute's name.
@return this {@link Searcher} for chaining.
338237
@SuppressWarnings({"WeakerAccess", "unused", "SameParameterValue"}) // For library users
    public Searcher clearFacetRefinements(@NonNull String attribute) {
        final List<String> stringList = refinementMap.get(attribute);
        if (stringList != null) {
            stringList.clear();
        }
        rebuildQueryFacetFilters();
        return this;
    }
282873
public Attributes put(Attribute attribute) {
        Validate.notNull(attribute);
        put(attribute.getKey(), attribute.getValue());
        attribute.parent = this;
        return this;
    }
308239
public void removeAttribute(String name) {
        if (getAttributes() != null) {
            List<Attribute> toRemove = new ArrayList<Attribute>();
            for (Attribute attr : getAttributes()) {
                if (attr.getAttributeName().equals(name))
                    toRemove.add(attr);
            }
            for (Attribute attr : toRemove)
                getAttributes().remove(attr);
        }
    }
1286934
void setAttributesForInit(Map<String, Object> attr) {
    this.attributes.clear();
    if (attr != null) {
      this.attributes.putAll(attr);
    }
  }
1112747
public void removeChild(AttributeId attribute) {
      if (children == null) {
         throw new IllegalArgumentException("No child found : " + attribute);
      }
      AttributeNode<AttributeMetadata, AttributeId> child = children.get(attribute);
      if (child == null) {
         throw new IllegalArgumentException("No child found : " + attribute);
      }
      children.remove(attribute);
      rebuildChildrenArray();
   }
1081218
public void setSearchableAttributes(java.util.Collection<String> searchableAttributes) {
        if (searchableAttributes == null) {
            this.searchableAttributes = null;
            return;
        }

        this.searchableAttributes = new java.util.ArrayList<String>(searchableAttributes);
    }
194434
@NonNull
    @SuppressWarnings({"WeakerAccess", "unused"}) // For library users
    public Searcher reset() {
        lastResponsePage = 0;
        lastRequestPage = 0;
        lastResponseId = 0;
        endReached = false;
        clearFacetRefinements();
        cancelPendingRequests();
        numericRefinements.clear();
        return this;
    }
502226
public <T> void dropColumn(Attribute<T, ?> attribute) {
        Type<T> type = attribute.getDeclaringType();
        if (attribute.isForeignKey()) {
            // TODO MySQL need to drop FK constraint first
        }
        QueryBuilder qb = createQueryBuilder();
        qb.keyword(ALTER, TABLE)
            .tableName(type.getName())
            .keyword(DROP, COLUMN)
            .attribute(attribute);
        try (Connection connection = getConnection()) {
            executeSql(connection, qb);
        } catch (SQLException e) {
            throw new TableModificationException(e);
        }
    }
1213395
public LDAPQuery setAttributes(String... attributes) {
		if(attributes != null && attributes.length > 0) {
			this.attributes = attributes;
		} else {
			this.attributes = ALL_ATTRIBUTES;
		}
		return this;
	}
1314105
@Override
    public void visit(final Attribute attribute) {
        if (type.isEmpty() || type.equals(attribute.getString())) {
            for (final GedObject gedObject : attribute.getAttributes()) {
                gedObject.accept(this);
                if (!dateString.isEmpty()) {
                    break;
                }
            }
        }
    }
715784
@PostMapping("/removeAttributeMapping")
  public String removeAttributeMapping(
      @RequestParam() String mappingProjectId,
      @RequestParam() String target,
      @RequestParam() String source,
      @RequestParam() String attribute) {
    MappingProject project = mappingService.getMappingProject(mappingProjectId);
    project.getMappingTarget(target).getMappingForSource(source).deleteAttributeMapping(attribute);
    mappingService.updateMappingProject(project);
    return "redirect:" + getMappingServiceMenuUrl() + "/mappingproject/" + project.getIdentifier();
  }
407017
public Object setAttribute(String name, Object attribute)
    {
        if (_attributes==null)
            _attributes=new HashMap(11);
        return _attributes.put(name,attribute);
    }
1212969
@Override
    public void visit(final Attribute attribute) {
        for (final GedObject gob : attribute.getAttributes()) {
            gob.accept(this);
        }
    }
1150895
public void navigateToAttribute(QName attribute) {
        path.addLast(path.getLast().attributes.get(attribute));
    }
1327763
public void reset() {
        attribute = null;
        tags.clear();
        inherits.clear();
        attributes.clear();
        Strings.clearBuilder(builder);
    }
510659
public boolean removeAttribute(final String name) {
        
        AttributeInfo existInfo = null;
        for(AttributeInfo item : attributes) {
            if(item.name.equals(name)) {
                existInfo = item;
                break;
            }
            
        }
        
        if(existInfo != null) {
            this.attributes.remove(existInfo);
            return true;
        }
        
        return false;
        
    }
363009
public NameOpValue removeParam(String attribute) {
	if (_relations == null || attribute == null) return null;
	return (NameOpValue)_relations.remove(canonicalize(attribute));
    }