473,386 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

search engine

Rod
Hi,

i am doing a ecommerce website and would like to implement a search engine
to find products.
All the serach engine I have found on the web are parsing html page!
This is not what i want.
i want to search within my mysql database.
But using:
- several columns (title, description)
- several tables (the product table is linked with another table which
contains more description about a specific product: 1 to many relationship).
Actually, the search should also be in the "category" name of the product
which is in another table

Also, i would like to sort the products like this:
- if the word is in the description for product A, and in the title for
product B, product B should be displayed first (because i think title is
more important than description). So it should rate each result.

A last thing, it should use boolean expression, and ignore words like "the,
some..." and numbers etc etc.

Do you have an idea?
Do you know a script which allow me to do that on both windows and uniw
environement?

thanks you very much

rod
Jul 17 '05 #1
8 2592
Rod wrote:
Hi,

i am doing a ecommerce website and would like to implement a search engine
to find products.
All the serach engine I have found on the web are parsing html page!
This is not what i want.
i want to search within my mysql database.
But using:
- several columns (title, description)
- several tables (the product table is linked with another table which
contains more description about a specific product: 1 to many relationship).
Actually, the search should also be in the "category" name of the product
which is in another table

Also, i would like to sort the products like this:
- if the word is in the description for product A, and in the title for
product B, product B should be displayed first (because i think title is
more important than description). So it should rate each result.

A last thing, it should use boolean expression, and ignore words like "the,
some..." and numbers etc etc.

Do you have an idea? You should not be doing a e-commerce website.
But if you really whant to , try learning SQL first. Do you know a script which allow me to do that on both windows and uniw
environement?

thanks you very much

rod

Jul 17 '05 #2
"Rod" <we****@hotmail.com> wrote in message
news:41*********************@news.club-internet.fr...
Hi,

i am doing a ecommerce website and would like to implement a search engine
to find products.
All the serach engine I have found on the web are parsing html page!
This is not what i want.
i want to search within my mysql database.
But using:
- several columns (title, description)
- several tables (the product table is linked with another table which
contains more description about a specific product: 1 to many relationship). Actually, the search should also be in the "category" name of the product
which is in another table

Also, i would like to sort the products like this:
- if the word is in the description for product A, and in the title for
product B, product B should be displayed first (because i think title is
more important than description). So it should rate each result.

A last thing, it should use boolean expression, and ignore words like "the, some..." and numbers etc etc.

Do you have an idea?
Do you know a script which allow me to do that on both windows and uniw
environement?

thanks you very much

rod


You could use a FULLTEXT index, check the docs at http://mysql.org

-- John
http://www.i-rate.org
Jul 17 '05 #3
Rod
don't you have something more interresting to say?
I think I have some good knowledge in sql (even if i am not the best like
you).
But the solution to this problem is not only in SQL (i am using innodb table
so i can't use fulltext index!!).

So, anything else?

"Fernando André" <an***@netcrash.no-ip.com> a écrit dans le message de
news:41**********************@news.telepac.pt...
Rod wrote:
Hi,

i am doing a ecommerce website and would like to implement a search engine to find products.
All the serach engine I have found on the web are parsing html page!
This is not what i want.
i want to search within my mysql database.
But using:
- several columns (title, description)
- several tables (the product table is linked with another table which
contains more description about a specific product: 1 to many relationship). Actually, the search should also be in the "category" name of the product which is in another table

Also, i would like to sort the products like this:
- if the word is in the description for product A, and in the title for
product B, product B should be displayed first (because i think title is
more important than description). So it should rate each result.

A last thing, it should use boolean expression, and ignore words like "the, some..." and numbers etc etc.

Do you have an idea?

You should not be doing a e-commerce website.
But if you really whant to , try learning SQL first.
Do you know a script which allow me to do that on both windows and uniw
environement?

thanks you very much

rod

Jul 17 '05 #4
Rod
Hi,

thanks you very much.

Actually, I know this functionnality but all my tables are InnoDB, and it
doesnot work with these tables.

do you have another solution?

"John Smith" <me@nospam.com> a écrit dans le message de
news:ce**********@newshispeed.ch...
"Rod" <we****@hotmail.com> wrote in message
news:41*********************@news.club-internet.fr...
Hi,

i am doing a ecommerce website and would like to implement a search engine to find products.
All the serach engine I have found on the web are parsing html page!
This is not what i want.
i want to search within my mysql database.
But using:
- several columns (title, description)
- several tables (the product table is linked with another table which
contains more description about a specific product: 1 to many

relationship).
Actually, the search should also be in the "category" name of the product which is in another table

Also, i would like to sort the products like this:
- if the word is in the description for product A, and in the title for
product B, product B should be displayed first (because i think title is
more important than description). So it should rate each result.

A last thing, it should use boolean expression, and ignore words like

"the,
some..." and numbers etc etc.

Do you have an idea?
Do you know a script which allow me to do that on both windows and uniw
environement?

thanks you very much

rod


You could use a FULLTEXT index, check the docs at http://mysql.org

-- John
http://www.i-rate.org

Jul 17 '05 #5
Rod
a last thing about fulltext.
Suppose you are searching for "foo".
Suppose this:
ID TITLE DESCRIPTION
1 hello foo
2 foo hello

the result will be:
1 hello foo
2 foo hello
because the have the same rating

but I would like
2 foo hello
1 hello foo

because it's more important to find the word in the title!!

I don't think you can customize that.
"John Smith" <me@nospam.com> a écrit dans le message de
news:ce**********@newshispeed.ch...
"Rod" <we****@hotmail.com> wrote in message
news:41*********************@news.club-internet.fr...
Hi,

i am doing a ecommerce website and would like to implement a search engine to find products.
All the serach engine I have found on the web are parsing html page!
This is not what i want.
i want to search within my mysql database.
But using:
- several columns (title, description)
- several tables (the product table is linked with another table which
contains more description about a specific product: 1 to many

relationship).
Actually, the search should also be in the "category" name of the product which is in another table

Also, i would like to sort the products like this:
- if the word is in the description for product A, and in the title for
product B, product B should be displayed first (because i think title is
more important than description). So it should rate each result.

A last thing, it should use boolean expression, and ignore words like

"the,
some..." and numbers etc etc.

Do you have an idea?
Do you know a script which allow me to do that on both windows and uniw
environement?

thanks you very much

rod


You could use a FULLTEXT index, check the docs at http://mysql.org

-- John
http://www.i-rate.org

Jul 17 '05 #6
Rod wrote:
Hi,

i am doing a ecommerce website and would like to implement a search
engine to find products.
All the serach engine I have found on the web are parsing html page!
This is not what i want.
i want to search within my mysql database.
But using:
- several columns (title, description)
- several tables (the product table is linked with another table which
contains more description about a specific product: 1 to many
relationship). Actually, the search should also be in the "category"
name of the product which is in another table

Also, i would like to sort the products like this:
- if the word is in the description for product A, and in the title
for product B, product B should be displayed first (because i think
title is more important than description). So it should rate each
result.

A last thing, it should use boolean expression, and ignore words like
"the, some..." and numbers etc etc.

Do you have an idea?
Do you know a script which allow me to do that on both windows and
uniw environement?

thanks you very much

rod


A product search in a db should not be the toughest challenge. Of course you
could write it yourself, using PHP and mysql queries, but I bet
http://www.scriptwiz.com/ has got some stuff you might like.
Jul 17 '05 #7
Scriptwiz.com is really helpful!
Gary, http://www.ratingportal.ch

Jul 17 '05 #8
"Rod" wrote:
Hi,

i am doing a ecommerce website and would like to implement a search
engine
to find products.
All the serach engine I have found on the web are parsing html page! This is not what i want.
i want to search within my mysql database.
But using:
- several columns (title, description)
- several tables (the product table is linked with another table which contains more description about a specific product: 1 to many
relationship).
Actually, the search should also be in the "category" name of the
product
which is in another table

Also, i would like to sort the products like this:
- if the word is in the description for product A, and in the title
for
product B, product B should be displayed first (because i think title is
more important than description). So it should rate each result.

A last thing, it should use boolean expression, and ignore words like "the,
some..." and numbers etc etc.

Do you have an idea?
Do you know a script which allow me to do that on both windows and
uniw
environement?

thanks you very much

rod


Rod, true that outside type search engine parse html pages, BUT you
are presenting your database results in html pages anyways, for your
users to view. So all your data is available in html (or could be)
for search engines to spider.

Is it really worth your time and money to implement something vs.
getting one of a number of free search engines that would spider your
site, and the price is having their search engine button on your site.
Suggest all the fancy stuff are hard to do from user interface
standpoint, and 99% of people won’t use them (even most people using
google don’t use advanced functions, let alone learning stuff about a
new /small site).

Just trying to save your time.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-search-e...ict133715.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=457667
Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: R. Rajesh Jeba Anbiah | last post by:
Q: Is PHP search engine friendly? Q: Will search engine spiders crawl my PHP pages? A: Spiders should crawl anything provided they're accessible. Since, nowadays most of the websites are been...
11
by: Petre Huile | last post by:
I have designed a site for a client, but they have hired an internet marketing person to incrase their search engine ranking and traffic. He wants to put extra-large fonts on every page which will...
5
by: George | last post by:
Hi, Anyone has the background for explaining? I have made a search on my name and I have got a link to another search engine. The link's title was the search phrase for the other search engine...
14
by: vic | last post by:
My manager wants me to develop a search program, that would work like they have it at edorado.com. She made up her requirements after having compared how search works at different websites, like...
2
by: Patrick | last post by:
Are the differences between a search engine, a subject directory and a meta search engine significant for an ebusiness web site owner? A meta search engine merely uses ordinary existing search...
5
by: Sam | last post by:
Does anyone know of a way to create a search page under ASP.NET 2.0? I have started out by configuring a catalog in Index Server, registering the aspx, ascx extensions in the registry to allow...
64
by: Manfred Kooistra | last post by:
I am building a website with identical content in four different languages. On a first visit, the search engine determines the language of the content by the IP address of the visitor. What the...
3
by: hazly | last post by:
I'm very new in the web technology and need advice on search engine. I want to develop a portal using PHP and MySQL on Linux. Need to know on the following features : 1. search engine that could...
4
by: MDW | last post by:
Posted this on another board, but evidently it was off-topic there...hope you folks will be able to provide some guidance. I've been working on a Web site for a business (my first non-personal...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.