Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder luigicannavaro's Avatar
    Join Date
    Aug 2007
    Posts
    150
    Thanks
    11
    Thanked 0 Times in 0 Posts

    How a search engine works?

    Dear friends,

    I imagine if I "create" and "storage", for example, 1,000 web pages in my database can I considerate that as a "short search engine"?

    My question is: As the user will find the information in that search engine:

    1. Must I index all 1,000 pages creating:

    1a. a table with indexes
    1b. other table with links and contents of each webpage

    The user will retrieve information based on keywords from indexed table that will redirect it for the requested web pages.


    2. retrieve information directly from webpages storaged based on keywords input by the user.

    Best regards

    Luigi

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,541
    Thanks
    8
    Thanked 1,093 Times in 1,084 Posts
    Normally a database contains the information to dynamically generate the web pages.
    That means you don't have 1000 pages, you one PHP (or server-side script) that reads
    data from the database and generates the web pages.

    For example, this forum that you're looking at right now, is basically one PHP script that
    is reading the content, the posts, the users, etc. from a MySQL database. It knows where
    to find the data in the database based on the number in the URL (t=153486).

    There are no static web pages. The PHP script builds the page you're seeing now and
    sends it to your browser. Every page on this forum is generated the same way.

    With that, the search is done upon the database itself.

    So, you'll have to expand on what you mean by 1000 pages in your database.
    Last edited by mlseim; 12-03-2008 at 07:16 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •