Skip to main content
nigelh70638339
Inspiring
September 13, 2017
Answered

Search facility on my site

  • September 13, 2017
  • 2 replies
  • 1333 views

I have been trying this for ages and nothing has really helped and I am just going round in circles.

My site contains thousands of individual pages that I want be found quickly and without using the Google Search which I currently have.

The site is basically split between country and then further split into brand and some are split by year.

I have installed MAMP (as I am using a Mac) and tried to create a database. I discovered that there were not enough rows (only 40 max) and looked into it. This led me to discovering that I need to create php pages which I did containing a search box and another for the results. Tried it and I was prompted to set up a test server which I did. The result when I tested the pages was that I received an 404 error. Even basic html pages showed the same.

Surely there has to be a simplified tutorial, step-by-step to help with this difficult task.

I am not afraid of working with it but at the same time I am not comfortable with long passages of text that waffle on about the reasoning of ab and c. I am looking for a simple explanation that will point me in the right direction.

Thanks in advance!

    This topic has been closed for replies.
    Correct answer Nancy OShea

    If you want to avail yourself to other search engines besides Google, look at:

    1)  Freefind.com -- an online search engine service.  The free version contains ads.  For approx. $9/mo you can have add-free search results.  After joining, Freefind will crawl your site and index it within approx 24 hours.   Try the free version first to see if you like it. 

    Site Search Engine, Free and Pro Versions - FreeFind.com

    2) Zoom from Wrensoft.  Zoom is standalone search engine software for indexing your site.   They have tiered pricing based on how many pages you need indexed.  If you make changes to your site, you will need to manually generate a new index each time.

    Zoom Website Search Engine - Add search to a website, intranet or CD

    2 replies

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    September 13, 2017

    If you want to avail yourself to other search engines besides Google, look at:

    1)  Freefind.com -- an online search engine service.  The free version contains ads.  For approx. $9/mo you can have add-free search results.  After joining, Freefind will crawl your site and index it within approx 24 hours.   Try the free version first to see if you like it. 

    Site Search Engine, Free and Pro Versions - FreeFind.com

    2) Zoom from Wrensoft.  Zoom is standalone search engine software for indexing your site.   They have tiered pricing based on how many pages you need indexed.  If you make changes to your site, you will need to manually generate a new index each time.

    Zoom Website Search Engine - Add search to a website, intranet or CD

    Nancy O'Shea— Product User & Community Expert
    nigelh70638339
    Inspiring
    September 13, 2017

    I think that I will go with the Freefind search engine. I have got some code tried it out and it looks the biz!

    All I need to do now is format it so everything is nice and central.

    Thank you Nancy and osgood!

    Legend
    September 13, 2017

    nigelh70638339  wrote

    I have been trying this for ages and nothing has really helped and I am just going round in circles.

    My site contains thousands of individual pages that I want be found quickly and without using the Google Search which I currently have.

    The site is basically split between country and then further split into brand and some are split by year.

    I have installed MAMP (as I am using a Mac) and tried to create a database. I discovered that there were not enough rows (only 40 max) and looked into it. This led me to discovering that I need to create php pages which I did containing a search box and another for the results. Tried it and I was prompted to set up a test server which I did. The result when I tested the pages was that I received an 404 error. Even basic html pages showed the same.

    Surely there has to be a simplified tutorial, step-by-step to help with this difficult task.

    I am not afraid of working with it but at the same time I am not comfortable with long passages of text that waffle on about the reasoning of ab and c. I am looking for a simple explanation that will point me in the right direction.

    Thanks in advance!

    Using php like that won't work. Normally when you use php to search a site all the pages main text needs to be stored in a database field so you can write a mysql query to search through the field and return urls, based on the pages unique id, to a results page if any matching words are found or you can set up a keyword column and search through that. I dont think thats an option as if you have thousands of pages it would take a lifetimes work to set up a searchable database, so what you are really looking for is a way to search through your html pages and set up a page which returns any matches to a  results page when found.

    These work similar to Google but search within your site. Google is poor because it indexes anything any everything, most of which is out of date and it takes forever to drop the indexing, so if you have a site that changes content regularly its always out of date, which is hugely frustrating for visitors if they keep clicking on information, index by Google, which is no longer available.

    Personally I have never used a search facility like I describe because most of the sites I build don't contain thousands of pages and its easy if I do then need to add a search to build something  based on keywords and then return result based on the id of the 'product/page' stored within the database. What you need is a much more generic solution of searching your whole site I would assume.

    I think some of the other locals in the forum will have used a database-less solution other than Google, so maybe they will be able to point you in the right direction

    nigelh70638339
    Inspiring
    September 13, 2017

    Thanks osgood.

    The site is mainly graphical with images of packs of cards. These packs of cards are what I would like to be searchable. I am rebuilding the site so now would be a good time to try and put something together.

    Google search is 'bleep' as it either does not find things or shows results that have nothing to do with the site.

    I hope that someone can help as it would help visitors find specific packs. There are in total over 3,500 packs so the database will be very big, I understand that.

    Legend
    September 13, 2017

    nigelh70638339  wrote

    Thanks osgood.

    The site is mainly graphical with images of packs of cards. These packs of cards are what I would like to be searchable. I am rebuilding the site so now would be a good time to try and put something together.

    Google search is 'bleep' as it either does not find things or shows results that have nothing to do with the site.

    I hope that someone can help as it would help visitors find specific packs. There are in total over 3,500 packs so the database will be very big, I understand that.

    If you are completely rebuilding the site then php search IS the way to go.

    Lets assume you are going to have a 'details' page for each pack of cards. You would store those details in a database so you only have to build one master details page, rather than 3500 individual website details pages, which would be a nightmare to manage and maintain.

    Part of the details, which are stored in your database, could be a keyword field where keywords are stored, (keywords need to be comma seperated) These keywords will be related to each specific pack of cards. When a use inserts those keywords into your search form the database keywords field would be searched for any matches. If a match is found you can built a 'results' page  and list the relevant packs of cards associated with the keywords the user has input.

    The list of matched pages on the results page is dynamically linked to the 'details' page, so the details information for a particular pack of cards gets retrieved from your database when the link on the results page is clicked. This is achieved via a unique database id which is passed via a url link. A unique id is a dedicated field in the database used to distinguish between database entries. It is automatically generated each time you add data to the databse.

    Maybe that gives you an idea of the workflow.