org.apache.lucene.queryParser.standard.config
Class FieldBoostMapAttributeImpl
java.lang.Object
org.apache.lucene.util.AttributeImpl
org.apache.lucene.queryParser.standard.config.FieldBoostMapAttributeImpl
- All Implemented Interfaces:
- Serializable, Cloneable, FieldBoostMapAttribute, org.apache.lucene.util.Attribute
public class FieldBoostMapAttributeImpl
- extends org.apache.lucene.util.AttributeImpl
- implements FieldBoostMapAttribute
This attribute is used by MultiFieldQueryNodeProcessor processor and
it should be defined in a FieldConfig. This processor uses this
attribute to define which boost a specific field should have when none is
defined to it.
- See Also:
BoostAttribute,
Serialized Form
| Fields inherited from class org.apache.lucene.util.AttributeImpl |
enableBackwards |
| Methods inherited from class org.apache.lucene.util.AttributeImpl |
clone, reflectAsString, reflectWith |
FieldBoostMapAttributeImpl
public FieldBoostMapAttributeImpl()
setFieldBoostMap
public void setFieldBoostMap(Map<String,Float> boosts)
- Specified by:
setFieldBoostMap in interface FieldBoostMapAttribute
- Parameters:
boosts - a mapping from field name to its default boost
getFieldBoostMap
public Map<String,Float> getFieldBoostMap()
- Specified by:
getFieldBoostMap in interface FieldBoostMapAttribute
clear
public void clear()
- Specified by:
clear in class org.apache.lucene.util.AttributeImpl
copyTo
public void copyTo(org.apache.lucene.util.AttributeImpl target)
- Specified by:
copyTo in class org.apache.lucene.util.AttributeImpl
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class org.apache.lucene.util.AttributeImpl
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.