investigating SEARCH ALL MODULES code needed

derrickhand300
@derrickhand300
9 years ago
1,353 posts
I am using Site Builder and have added a site search to a page which seems to work well-I would like the template code for the Site Search so i can add it to templates-right now its only able to be configured into a specific widget but I would like the template code to add it to my header template ( which does not use widgets)
Thank you
updated by @derrickhand300: 12/22/16 11:55:59AM
derrickhand300
@derrickhand300
9 years ago
1,353 posts
Also...I have a page titled "jewelry and keychains" BUT when i enter "jewelry" into the search it comes back as no results?
How to fix?
douglas
@douglas
9 years ago
2,800 posts
You should be able to use this for the site search form:

        {jrCore_lang module="jrSearch" id="1" default="Search Site" assign="st"}
        <h2>{$_conf.jrCore_system_name} {$st}</h2><br><br>
        {jrSearch_form class="form_text" value=$st style="width:70%"}

and to fix the no results issue, go to your ACP > Listing > Search > Tools and click the "Rebuild Index" button.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
derrickhand300
@derrickhand300
9 years ago
1,353 posts
Thank you once again Douglas!
douglas
@douglas
9 years ago
2,800 posts
Your welcome! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
derrickhand300
@derrickhand300
9 years ago
1,353 posts
I have tried the rebuild button and let it run all night ( not a very large site) still its not indexing those pages...
Any thoughts?
derrickhand300
@derrickhand300
9 years ago
1,353 posts
The issue may be in the way the pages are created...when i create a new page I just type the url in the browser ie: www.mysite.com/new_page then select the button that says something like " This page does not exist-click this button to create this page"
I wonder if the search index settings are not configured to index these pages made in this manner?
brian
@brian
9 years ago
10,149 posts
derrickhand300:
I have tried the rebuild button and let it run all night ( not a very large site) still its not indexing those pages...
Any thoughts?

If it is a small site, the index rebuild should only take a few seconds... Are you still seeing it rebuilding a day later?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
9 years ago
10,149 posts
derrickhand300:
The issue may be in the way the pages are created...when i create a new page I just type the url in the browser ie: www.mysite.com/new_page then select the button that says something like " This page does not exist-click this button to create this page"
I wonder if the search index settings are not configured to index these pages made in this manner?

SB pages are not indexed by the search module - right now the search module only indexes ITEMS that are stored in a module data store, and SB pages are not stored in a data store.

I'm not sure how this would be integrated at this point, but if you create an SB page that is an HTML editor and then manually add content to it that way, it's not going to be searched. However - if you create the page and then do a JR core list call for the PAGE CREATOR module and basically "embed" a page that way, that would work.

I will check out getting SB pages supported in the search module though.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
derrickhand300
@derrickhand300
9 years ago
1,353 posts
thanks- yes the message finishes quickly but the pages are not indexed...the problem is as you described above

Tags