searchable text not set

0 views
Skip to first unread message

Barry

unread,
Nov 26, 2010, 9:02:10 AM11/26/10
to django-lfc
Just trying out lfc 1.0.2 and I noticed some Pages weren't coming up
in searches that they should have been found on.

Checking with the shell, I found:

>>> admissions.searchable_text
u'Admissions'
>>> admissions.get_searchable_text()
u'Admissions <h1 class="documentFirstHeading">Applying to Lancaster</
h1>\n<div class="stx">\n<p>&nbsp;</p>\n<p><img style="float: right;
border: 1px solid black; margin: 10px;" src="/media/uploads/
cat_0128.200x200.jpg" alt="" width="222" height="159" /> The
Department of Mathematics and S [etc]

Now the save method for BaseContent should set searchable_text to the
get_searchable_text() value, but it seems in this case it hadn't. I
started the server, went to the manage screen for that page, did a
"Save core data", and now it is coming up in searches. Is
searchable_text not being set in some conditions?

I'll explore more now I've stuck some debugging output in the save
method, but maybe this is a known bug...

Kai Diefenbach

unread,
Nov 26, 2010, 10:55:51 AM11/26/10
to django-lfc
Hi,

> Now the save method for BaseContent should set searchable_text to the
> get_searchable_text() value, but it seems in this case it hadn't. I
> started the server, went to the manage screen for that page, did a
> "Save core data", and now it is coming up in searches. Is
> searchable_text not being set in some conditions?

Not that I'm aware of.

> I'll explore more now I've stuck some debugging output in the save
> method, but maybe this is a known bug...

No, not yet.

Please file a bug with instructions how one can reproduce that issue.

http://bitbucket.org/diefenbach/django-lfc/issues?status=new&status=open

Thanks
Kai

Barry

unread,
Nov 26, 2010, 12:26:11 PM11/26/10
to django-lfc
Having trouble reproducing it - new content created now is fully
searchable. I've been playing with workflow (but only the standard
included ones) so maybe its related to that. Just a hunch.

If I can break it again I'll report it.

thanks
Reply all
Reply to author
Forward
0 new messages