Fixed #1 by making ID to be parsed as a non-text.

This commit is contained in:
Jorge C. Leitão 2014-05-10 23:31:35 +02:00
parent f81ba0021c
commit c24abd182b

View file

@ -237,7 +237,7 @@ class XapianSearchBackend(BaseSearchBackend):
weight = int(weights[field['field_name']])
except KeyError:
weight = 1
if field['type'] == 'text':
if field['type'] == 'text' and field['field_name'] != 'id':
if field['multi_valued'] == 'false':
term = _marshal_term(value)
term_generator.index_text(term, weight)