return hashCode;
}
@Override
public String toString() {
ToStringBuilder toStringBuilder = new ToStringBuilder(this.getClass())
.add("field", this.field());
toStringBuilder.add("preservePositionIncrements", this.preservePositionIncrements);
if (queryAnalyzer != null && queryAnalyzer.equals(indexAnalyzer)) {
toStringBuilder.add("analyzer", this.queryAnalyzer);
} else {
if (queryAnalyzer != null) {
toStringBuilder.add("queryAnalyzer", queryAnalyzer);
}
if (indexAnalyzer != null) {
toStringBuilder.add("indexAnalyzer", indexAnalyzer);
}
}
if (types.size() > 0) {
toStringBuilder.add("types", Joiner.on("-").join(types));
}
return toStringBuilder.toString();
}