Page 1 of 1

CTLmodulemaker: simple search does not return any results?

Posted: Fri Aug 07, 2009 3:32 pm
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?

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

Posted: Wed Aug 19, 2009 8:31 am
by jack4ya
Up she goes...

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

Posted: Thu Aug 20, 2009 5:49 pm
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

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

Posted: Mon Mar 22, 2010 11:16 pm
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