CTLmodulemaker: simple search does not return any results?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

CTLmodulemaker: simple search does not return any results?

Post by jack4ya »

I've got it working... sortof:

The advanced search works nice.
But the simple does not return any results... only if a put in (part of) the title.
Shouldn't it be searching all 'indexed' fields?

I've tried reinstalling/deleting etc... I must be missing something, but what?

Have a look here...
http://www.halfzeven.nl/cmsms/index.php ... extensions


1)
• See the Opleiding > hbo option in advancedsearch? Now use that > Yes! it gives results
• Type 'hbo' in simplesearch > No results...

The "Opleiding" is set to be indexed... I can find it in the database as cms_module_modulename_fieldoptions
But it's NOT stored as a searchword...

2)
The word "Lorem" is used in a long text field. Field is indexed, and findable in database as a searchword.
But entering "Lorem" in the search does not return results...
(http://www.halfzeven.nl/cmsms/index.php ... eturnid=24)


Any clues here?
Last edited by jack4ya on Fri Aug 07, 2009 3:34 pm, edited 1 time in total.
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Re: CTLmodulemaker: simple search does not return any results?

Post by jack4ya »

Up she goes...
User avatar
plger
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 15, 2008 10:38 am

Re: CTLmodulemaker: simple search does not return any results?

Post by plger »

"Opleiding" :
The simple search can only reach text fields. For lists, only the key is stored, and as it would require to search list keys before querying the items, the module as it is programmed right now can't reach it. I will add this to the todo list, but it may take some time.
jack4ya wrote: Field is indexed, and findable in database as a searchword.
Here I assume you talking not about the core search module (because you Lorem does return results there), but about the internal search action of the vacatures module? No need to look for searchwords - the internal search action does not use indexation, it queries directly in the item table for the wanted string. As I see no reason why it should not work, I suspect it might be a bug. If you can email me your module (or module dna), I will check it out.

Pierre-Luc
kank
Forum Members
Forum Members
Posts: 16
Joined: Wed Nov 26, 2008 3:02 am
Location: Sunshine Coast, Queensland, Australia

Re: CTLmodulemaker: simple search does not return any results?

Post by kank »

I thought I'd dredge up this old thread because I think I have a solution that I've tested with the 'long text' field type.

The following option settings will result in 'no results' for a 'simple mode' search...

Should this field be indexed for the Search Module? YES
Should this field show up in the advanced (search by fields) search action?
NO

With the following option settings, the simple mode search will work perfectly. Well, apart from the duplicated search result problem. (I'd love a solution for that one!!!)

Should this field be indexed for the Search Module? YES
Should this field show up in the advanced (search by fields) search action?
YES

So there is a bug there but maybe not worth fixing with v2.0 on the way ;)

Especially if this workaround works for everyone
Post Reply

Return to “Modules/Add-Ons”