Commit 75ef7043 authored by Nicolas Chauvat's avatar Nicolas Chauvat
Browse files

[entities] include title when comparing ads

parent 02bd3c428134
......@@ -134,7 +134,7 @@ def reset_proximity_cache():
def update_proximity_cache(_cw):
rset = _cw.execute('Any X WHERE X is ClassifiedAd')
for entity in rset.entities():
VSM.add_text(entity.eid, entity.description)
VSM.add_text(entity.eid, ' '.join([entity.title]*3+[entity.description]))
class ClassifiedAd(AnyEntity):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment