mirror of
https://github.com/Hopiu/xapian-haystack.git
synced 2026-04-23 08:04:50 +00:00
Fixed #1 by making ID to be parsed as a non-text.
This commit is contained in:
parent
f81ba0021c
commit
c24abd182b
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue