473,406 Members | 2,710 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,406 software developers and data experts.

Full text practices

I am looking for information on the proper way to code full text queries and
more information on how they work.
I am especially interested in how to code for multi word queries...

for example :

Searching for : 'today is the day'

Select * from table1 where match field1 against ('today is the day' IN
BOOLEAN MODE) ????
Select * from table1 where match field1 against ('today or is or the or day'
IN BOOLEAN MODE) ????

What is the difference between using or not using IN BOOLEAN MODE?
What is the best way to allow people to also search for "today is the day"
in quotes--- literal string...

Thanks in advance for any help.
Craig Stadler

Jul 20 '05 #1
3 1563
> I am looking for information on the proper way to code full text
queries and
more information on how they work.
I am especially interested in how to code for multi word queries...

for example :

Searching for : ’today is the day’

Select * from table1 where match field1 against (’today is the day’ IN BOOLEAN MODE) ????
Select * from table1 where match field1 against (’today or is or the or day’ IN BOOLEAN MODE) ????

What is the difference between using or not using IN BOOLEAN MODE?
What is the best way to allow people to also search for "today is the day" in quotes--- literal string...

Thanks in advance for any help.
Craig Stadler

Good reference:
http://www.databasejournal.com/featu...le.php/1578331

mysql manual had a good documentation on fulltext:
http://dev.mysql.com/doc/mysql/en/Fulltext_Search.html
Binary is also explained - follow the thread in the url above.

With fulltext, you can search for quoted strings as you have
described.

Please check out the links above. If your questions are not answered
in this thread, then query again, and I will try to help.

--
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/mySQL-Full-t...ict124191.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=413684
Jul 20 '05 #2

I am looking for information on the proper way to code full text

queries and
> more information on how they work.
> I am especially interested in how to code for multi word queries...
>
> for example :
>
> Searching for : today is the day?
>
> Select * from table1 where match field1 against (today is the day?

IN
> BOOLEAN MODE) ????
> Select * from table1 where match field1 against (today or is or

the or day?
> IN BOOLEAN MODE) ????
>
> What is the difference between using or not using IN BOOLEAN MODE?
> What is the best way to allow people to also search for "today is

the day"
> in quotes--- literal string...
>
> Thanks in advance for any help.
> Craig Stadler


Select * from table1 where match field1 against ("+today +is +the +day?" IN
BOOLEAN MODE)

this statement requires the record contain all the 4 words.

PS, there's no relevent value will be useful coz all record returned has all
the words.

Cheers, ccton
Jul 20 '05 #3
CryingClinton wrote:
I am looking for information on the proper way to code full text
queries and
> more information on how they work.
> I am especially interested in how to code for multi word
queries... >
> for example :
>
> Searching for : today is the day?
>
> Select * from table1 where match field1 against (today is the day? IN
> BOOLEAN MODE) ????
> Select * from table1 where match field1 against (today or is
or the or day?
> IN BOOLEAN MODE) ????
>
> What is the difference between using or not using IN BOOLEAN
MODE? > What is the best way to allow people to also search for
"today is the day"
> in quotes--- literal string...
>
> Thanks in advance for any help.
> Craig Stadler


Select * from table1 where match field1 against ("+today +is +the

+day?" IN BOOLEAN MODE)

this statement requires the record contain all the 4 words.

PS, there’s no relevent value will be useful coz all record returned has all the words.

Cheers, ccton

Sorry, it seems like I did not respond properly to your question, in
my prev. post (I hope others do).

In any case, boolean mode does not use relevancy, and what you say
above is correct.

In any case, most bulletin boards, etc. do not allow exact string
searches, and it does not seem to seriously bother their users (it
does not bother me as a user).. so I would implement that if it is a
"must have".

--
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/mySQL-Full-t...ict124191.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=421033
Jul 20 '05 #4

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

Similar topics

0
by: Tracey | last post by:
Hi there, I want to search Japanese characters with Full Text search function. I created a table (tbSearch) for Full-text search on SQL 2000, English Win2k Server. The table contains 4 fields,...
0
by: Denise | last post by:
Hi I have set up a full text index on one of my database tables and created a catalog. Then I started a full population on my catalog and got a message "Population of full text index started...
2
by: Todd_M | last post by:
I was wondering what anyone might suggest as "best practice" patterns for streaming out fixed formatted text files with C#? Let's say we get our data in a dataset table and we need to iterate over...
3
by: Anson Ng | last post by:
I'm developing a POS application and am looking into ways of making it a full screen application. I found that I can use Direct3D. Is this the usual way of implementing a full screen windows...
2
by: js | last post by:
I got this error when I moved my application to a new Windows 2003 server. I installed and recompiled the 'Microsoft.Practices.EnterpriseLibrary - June 2005" then added these assemblies to the...
21
by: nsimeonov | last post by:
Hello, Does anyone have any idea how Gmail does this? I have a web application and people complain sometimes about some problems and most of the time it turns out it's the browser's cache...
5
by: Smarty | last post by:
Dear Friends, I did a file type validation in Javascript. Just i want to check whether a selected file is BMP or JPG. I wrote the following function for it. function checkType(){ Text =...
4
by: Neil | last post by:
Just found out that the Microsoft Rich Textbox does not support full text justification, since it's based on Version 1.0 of the RichEdit Window Class, and full text justification is only available...
8
by: Sham | last post by:
I am trying to perform the following query on a table that has been indexed using Full Text Search. The table contains multiple columns than have been indexed. (Below, all xml columns are...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.