Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
classifiedad
Commits
6605bce14e2f
Commit
75ef7043
authored
May 09, 2010
by
Nicolas Chauvat
Browse files
[entities] include title when comparing ads
parent
02bd3c428134
Changes
1
Hide whitespace changes
Inline
Side-by-side
entities.py
View file @
6605bce1
...
...
@@ -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
])
)
#VSM.compute_similarities()
class
ClassifiedAd
(
AnyEntity
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment