Search feature not working properly

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
rogerm
New Member
New Member
Posts: 5
Joined: Mon Sep 18, 2006 2:52 pm

Search feature not working properly

Post by rogerm »

Hi,

CMSMS 1.0 "Hawaii" working great for me on linux server. But the internal site search feature returns "No Results Found!" for anthing search words entered that are contained in the pages I've added, despite whether custom or stock templates are  used.

The search feature does return results from the sample pages that came with the install (documentation etc), but even then returns no results for part of that content such as the words "CKEditor" and "WYSIWYG" which are contained within those pages.

I've repeatedly clicked the "reindex al content" on the options tab on the search module page in admin and cleared the cache. I've also taken the time to search the forum and documention on the CMSMS site. I've spent time experimenting with other things as well.

Any help very much appreciated!

Thanks,
Roger M, NYC
MeneM

Re: Search feature not working properly

Post by MeneM »

Yes, I have the exact same problem?

I'm using 1.0.2 "Maui", but can't seem to get the search function to work?
paragulka

Re: Search feature not working properly

Post by paragulka »

I have the exact same problem using 1.0  Hawaii..

the search worked flawlessly until i tried to change the templates.. then it didnt return any results.. i reset the templates to defaults, and even reinstalled the search module - nothing worked...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Search feature not working properly

Post by calguy1000 »

Try the 're-index all content' option in the search module.

I just checked my site (new site upgradef from 0.13 to 1.0.2) and I've had no difficulty.  I've edited content, and templates a billion times with no issues.

Maybe it's a database issue.  Are you using adodb or adodb-lite (hint look in your config.php).
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
rogerm
New Member
New Member
Posts: 5
Joined: Mon Sep 18, 2006 2:52 pm

Re: Search feature not working properly - indexing not functioning?

Post by rogerm »

Hi again,

I've spent time looking into the above suggestions and I'm wondering if the  "search" feature is working fine, but it's the site indexing that's the problem? Repeatedly clicking the "reindex all content" button in the admin search module fails to index all the content. I determined this by looking in the "cms_module_search_index" table in the database which shows only "search" and "news" in the module name column. Apparently words associated with the search module are words indexed by the search module "reindex" feature and there are a very limited number of these entries. Any text from the "cms_module_search_index" table "word" column comes up fine using the search feature.

Continuing to investigate.

Roger M
millo

Re: Search feature not working properly

Post by millo »

Hi RogerM

Has no solution been found to this? Surely this is pretty critical stuff no? I've got the same problem fyi. I'm running the multilingual version but it should essentially be the same thing.

Any help appreciated.

Thanks
millo

Re: Search feature not working properly

Post by millo »

I was using a custom template and didn't have the encoding set. Once I set it to utf-8. All the searching started working.

Phew!

Hope this helps anyone out there.
paragulka

Re: Search feature not working properly

Post by paragulka »

I still have no luck even with using built-in page and search templates...

This is actually pretty critical as a properly functioning search is such an essential feature...  :(
paragulka

Re: Search feature not working properly

Post by paragulka »

OK, here's how i got search working again:

After editing any search template, it wont search anythign at all, reindexing does not work.
However, when i set all my pages to use a built-in theme and then reindex all pages, the search starts working again.
Then i can switch back to my custom template and search works.

For some odd reason reindexing does nto work with my custom template.
Go figure.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Search feature not working properly

Post by tsw »

did you read what millo wrote?
I was using a custom template and didn't have the encoding set. Once I set it to utf-8. All the searching started working.
paragulka

Re: Search feature not working properly

Post by paragulka »

yes for my case that was not the problem
Piratos

Re: Search feature not working properly

Post by Piratos »

Try module pisearch.  Test it here http://piratos.byethost33.com/cmsms/
Last edited by Piratos on Fri Oct 13, 2006 4:18 pm, edited 1 time in total.
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: Search feature not working properly

Post by Gregor »

I did a reindex on all content on my site, but no luck: the word 'whiskey' is on the first page, but search does not find it.

I add:
This helped :)

@Piratos: I tried yours as well. I searched for 'gpl': no luck.

I'm using v.1.0.2. Maui
Last edited by Gregor on Fri Oct 13, 2006 8:56 pm, edited 1 time in total.
Piratos

Re: Search feature not working properly

Post by Piratos »

Words with a length <4 chars are ignored as standard, you can set it with the parameter minchars .

With  minchars="0"  all length are accepted.
Last edited by Piratos on Sat Oct 14, 2006 7:39 am, edited 1 time in total.
isi
New Member
New Member
Posts: 3
Joined: Sat Nov 25, 2006 12:33 pm

Re: Search feature not working properly

Post by isi »

Hello,

I had the same search index problem on one of my CMSMS sites.

And that was the problem:

The indexing stop working, when I have only one line in the template:

Code: Select all

{include file='the_path_to_my_templatefile/main.tpl'}
to edit the template with a normal editor.

The indexing working fine when I put the content of the template file directly in the template (as designated).

may be it helps

Klaus
Post Reply

Return to “CMSMS Core”