View source on GitHub |
A Facet that has content to be treated as a single token for indexing.
Inherits From: Facet
, expected_type
google.appengine.api.search.AtomFacet(
name, value=None
)
The following example shows an atom facet named wine_type: AtomFacet(name='wine_type', value='Red')
Args | |
---|---|
name
|
The name of the facet. |
value
|
A str or unicode object to be treated as an indivisible text value. |
Raises | |
---|---|
TypeError
|
If value is not a string. |
ValueError
|
If value is longer than allowed. |
Attributes | |
---|---|
name
|
Returns the name of the facet. |
value
|
Returns the value of the facet. |
Methods
__eq__
__eq__(
other
)
Return self==value.
__ne__
__ne__(
other
)
Return self!=value.