Search function

Permalink 1 user found helpful
I am using the standard C5 search block on the following page:http://www.mountainlakealliance.com/sermons/.... I have it configured to search "beneath this page" and have gone into "System & Maintenance" and run the Index Search Engine deal.

I am using the SimpleCast Cast List page list block on that particular page which displays all of the Sermons that have been entered (with pagination).

My problem is that the Search does not return any where near accurate results and I can't understand why and don't know what I have to do to get them. If I search for the word "God's", which you can plainly see is used 6 times on that page, it only returns one result.

If I search for "role", which is used 5 times between 12/4/11 and 10/30/11, it returns 3 results.

Why is this not working correctly? I want to get a working Search box on this Website. is there something else I should be using instead?

Thanks in advance for any assistance.

webicine
 
cal8eb8 replied on at Permalink Reply
cal8eb8
Do you have any pages beneath that page? My guess is, "beneath this page" searches in subpages of that page. You may need to put that page in another page and have you search "beneath another page", the page you just made. I have not tested this, but it might possibly work.
webicine replied on at Permalink Reply
webicine
cal8eb8 - Yes, all of the sermons are sub-pages of that page. Just for kicks I added the Search block to another page and then directed it to Search under the Sermons page and it came up with the same results.
jero replied on at Permalink Reply
jero
Looking at

http://www.mountainlakealliance.com/index.php/sermons/january-29-20...
http://www.mountainlakealliance.com/index.php/sermons/february-5-20...

and

http://www.mountainlakealliance.com/index.php/sermons/february-12-2...

Only the latter has a title (css rule #feature-title)

That's the only one found in your search.

So it stands to reason, that the search is only looking at the title, in this particular instance. It may be that you've configured the search to do that - or maybe there are some other page attributes that you're setting that are not marked as being searchable.
webicine replied on at Permalink Reply
webicine
I haven't set up any search exclusions, so why wouldn't it just search any text on the page? I haven't used the search block much in C5 so far. I assumed when I set it to check all pages beneath the Sermons page it would use all of the text on those pages. Does it do something other than that?
cal8eb8 replied on at Permalink Reply
cal8eb8
Anyone who answers this would be helpful, because my search has screwed up, too. I had to put the page under a different page, and put the search on that page. That was how I got it to work.
jero replied on at Permalink Reply 1 Attachment
jero
By default, the search block will only index page areas called 'Main Content' and 'Main'. It makes sense to do this, otherwise content in sidebars and headers/footer areas and even the header navigation would pollute the results with pages that weren't relevant. <http://www.concrete5.org/documentation/general-topics/search/>

If your theme doesn't use "Main", then that's a good reason for it to fail.

As I mentioned before, I notice on your pages that the ones that appear in the search all seem to have a title of some sort within the <div id="feature_title"> (see attached image) and I'd hazard a guess that this is within the "Main" area. The pages that don't appear, and that you think should, don't have this title.
webicine replied on at Permalink Reply 2 Attachments
webicine
Jero, thanks so much for taking the time to investigate this. I see what you're saying. The ones that are getting indexed are the ones that they have entered into the Description area of the Page Properties. See attached image called search_function1.png. I do have a "Main" area on that page (see attached image called search_function2.png).

I am using the Add Cast part of the SimpleCast add-on to enter in the content in the 1st "Main" area of the page. That is what's not getting indexed.
jero replied on at Permalink Reply
jero
The Description is I would expect marked as a searchable attribute which is why is shows up. I've not used the simplecast addon, and as it's not free, I can't look at the code. It might be worth raising a support ticket with ChadStrat and seeing if he can shed any light on why it's not working.
webicine replied on at Permalink Reply
webicine
Jero, I did add a support request last night and he said that the SimpleCast content is not indexed for search. I don't know what it would take to have it included, but we'll work around it for now by adding it to the page description. Thanks again for your assistance.
cal8eb8 replied on at Permalink Reply
cal8eb8
Just wondering... Can you make the search results show thing on the page the search blok is on, and only that page, without putting that page under another? My FAQ page has to have the search on the page it is under in order for it to work properly, but there is another page under the page above FAQ also, so it searches both pages.