summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO.rst6
-rw-r--r--lesana/collection.py2
2 files changed, 7 insertions, 1 deletions
diff --git a/TODO.rst b/TODO.rst
index f8256c8..4452ab5 100644
--- a/TODO.rst
+++ b/TODO.rst
@@ -6,3 +6,9 @@ The following features are already planned.
lesana).
* Write a command which reads data from a collection and writes it to
another one, using a simple mapping of fields.
+
+The following features may be nice to have.
+
+* Having an indexing mode that adds the field as a value instead of a
+ term, see
+ https://getting-started-with-xapian.readthedocs.io/en/latest/concepts/indexing/values.html
diff --git a/lesana/collection.py b/lesana/collection.py
index fbdb935..0280f85 100644
--- a/lesana/collection.py
+++ b/lesana/collection.py
@@ -165,7 +165,7 @@ class Collection(object):
for v in values:
try:
self.indexer.index_text(
- v,
+ str(v),
1,
field['prefix'])
except ValueError as e: