Contextual information when searching forums?

Contextual information when searching forums?

by Brian Koontz -
Number of replies: 16
Is there any way to enable contextual information when viewing search results?  In 1.5, the only items displayed are author and forum -- hardly useful when searching through several search hits.
Average of ratings: -
In reply to Brian Koontz

Re: Contextual information when searching forums?

by Robert Brenstein -
I think it is a bug related to adding advanced search in 1.5.

When using moodle.org, I notice that that some search results display with context as before while others display only author and forum. Possibly difference between normal and advanced search, although I seem to recall getting one or the other output from advanced searches (but may be my memory fails me).

Also, the advanced search link in top right is not always shown when search box is shown there.
In reply to Robert Brenstein

Re: Contextual information when searching forums?

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
When do you only see author and forum? It's definitely a bug if you're seeing that (I've never seen it). Normally full posts are shown, with highlighting and further links.

Can you give me a replicable search I can see so I can look into it?
In reply to Martin Dougiamas

Re: Contextual information when searching forums?

by N Hansen -
Martin-I've been seeing this too-It shows up when you do a search for "these words should appear as whole words." Try a search on: Martin 2005 and you'll get a replicable search:

http://moodle.org/mod/forum/search.php?id=5&words=&phrase=&notwords=&fullwords=martin+2005&hfromday=1&hfrommonth=1&hfromyear=1&hfromhour=1&hfromminute=1&htoday=1&htomonth=1&htoyear=1&htohour=1&htominute=1&forumid=0&subject=&user=
In reply to N Hansen

Re: Contextual information when searching forums?

by Tony Hursh -
Ack!

I'm pretty sure that was working before, so it may just be something minor.

Martin, if it's not something trivial, let me know. I'm sort of swamped at the moment (there's a new cohort of grad students to orient and teach, and we're on deadline for our LD paper) but I can try to make time if necessary.


Average of ratings:Useful (1)
In reply to N Hansen

Re: Contextual information when searching forums?

by Jens Gammelgaard -
Picture of Translators

By the way Hansen, your post shows that we need a kind of an auto-wrapper so that a long URL like yours does not break the theme layout. (The theme should have been 100% wide),right Martin?

In reply to Jens Gammelgaard

Re: Contextual information when searching forums?

by N Hansen -
As long as the solution doesn't break the URL instead.
In reply to N Hansen

Re: Contextual information when searching forums?

by Darren Smith -
There is a solution. You can just do this
In reply to Darren Smith

Re: Contextual information when searching forums?

by Brian Koontz -
That doesn't seem to work either. Here's what I get:

In reply to Brian Koontz

Re: Contextual information when searching forums?

by Darren Smith -

Your image didn't load but I suspect we are on cross lines.

My solution was an alternative to posting very long URLs which break the theme - it was not a solution to the search problem which I have just noticed and still seems to exist.

Has this been raised in the bug tracker?

Darren

PS - The image is present as indicated by the image properties (here) but I guess the forums don't support inline tiffs. It's interesting (and potentially a problem) that it does not show up as an attachment on the site (prob does if you got it through email)

In reply to Darren Smith

Re: Contextual information when searching forums?

by N Hansen -
The lack of support for inline tiffs has nothing to do with the forums-inline tiffs are simply not supported in any browser, and never have been. That's why people use other formats on the web.
In reply to N Hansen

Re: Contextual information when searching forums?

by Darren Smith -
... so the forum should display the tiff as an attachment instead of trying to display it inline.
In reply to N Hansen

Re: Contextual information when searching forums?

by Brian Koontz -
Sorry...wasn't paying attention when I uploaded that (Mac OS X defaults screenshots to .tiff format, so there's an extra step involved to convert to more browser-friendly formats).  I hope JPG is PC enough for everyone...




Attachment search.jpg
In reply to N Hansen

Re: Contextual information when searching forums?

by Brian Koontz -
The lack of support for inline tiffs has nothing to do with the forums-inline tiffs are simply not supported in any browser, and never have been.

Actually, that's not quite correct: Safari has no problems rendering inline TIFF images.

But I digress...
In reply to Brian Koontz

Re: Contextual information when searching forums?

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
The bug should be fixed now.

It was only occurring when using "must have" search terms like this: +word. The highlighting function doesn't like these terms and blanked the string. Fixed in 1.5 CVS and HEAD by removing these terms before passing to the highlighting function.

I'd close the bug report in the bug tracker but no-one made one. wink

Please keep testing and reporting bugs.