View source on GitHub
|
A Field that has content to be treated as a single token for indexing.
Inherits From: Field, expected_type
google.appengine.api.search.AtomField(
name, value=None, language=None
)
The following example shows an atom field named contributor: AtomField(name='contributor', value='foo@bar.com')
Args | |
|---|---|
name
|
The name of the field. |
value
|
A str or unicode object to be treated as an indivisible text value. |
language
|
The code of the language the value is encoded in. |
Raises | |
|---|---|
TypeError
|
If value is not a string. |
ValueError
|
If value is longer than allowed. |
Attributes | |
|---|---|
language
|
Returns the code of the language the content in value is written in. |
name
|
Returns the name of the field. |
value
|
Returns the value of the field. |
Methods
__eq__
__eq__(
other
)
Return self==value.
__ne__
__ne__(
other
)
Return self!=value.
Class Variables | |
|---|---|
| ATOM |
'ATOM'
|
| DATE |
'DATE'
|
| GEO_POINT |
'GEO_POINT'
|
| HTML |
'HTML'
|
| NUMBER |
'NUMBER'
|
| TEXT |
'TEXT'
|
| TOKENIZED_PREFIX |
'TOKENIZED_PREFIX'
|
| UNTOKENIZED_PREFIX |
'UNTOKENIZED_PREFIX'
|
| VECTOR |
'VECTOR'
|
View source on GitHub