ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Scripts  >>  PHP
 
 


 

 
 PHP interview questions  PHP Interview Questions
 ASP interview questions  ASP Interview Questions
 CGI Perl interview questions  CGI Perl Interview Questions
 JavaScript interview questions  JavaScript Interview Questions
 VB Script interview questions  VB Script Interview Questions
 JSP interview questions  JSP Interview Questions
 Shell Script interview questions  Shell Script Interview Questions
 Python interview questions  Python Interview Questions
 Tcl interview questions  Tcl Interview Questions
 Awk interview questions  Awk Interview Questions
 AJAX interview questions  AJAX Interview Questions
 Ruby on Rails interview questions  Ruby on Rails Interview Questions
 Scripts AllOther interview questions  Scripts AllOther Interview Questions
Question
What is fulltextsearch
 Question Submitted By :: Rohit Singh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is fulltextsearch
Answer
# 1
MySQL has support for full-text indexing and searching. A 
full-text index in MySQL is an index of type FULLTEXT. 
FULLTEXT indexes can be used only with MyISAM tables; they 
can be created from CHAR, VARCHAR, or TEXT columns as part 
of a CREATE TABLE statement or added later using ALTER 
TABLE or CREATE INDEX. For large datasets, it is much 
faster to load your data into a table that has no FULLTEXT 
index, and then create the index afterwards, than to load 
data into a table that has an existing FULLTEXT index. 

Constraints on full-text searching are listed in Section 
12.7.4, “Full-Text Restrictions”. 

Full-text searching is performed with the MATCH() function. 

mysql> CREATE TABLE articles (
    ->   id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY 
KEY,
    ->   title VARCHAR(200),
    ->   body TEXT,
    ->   FULLTEXT (title,body)
    -> );
 
Is This Answer Correct ?    2 Yes 0 No
Jagpreet
 
  Re: What is fulltextsearch
Answer
# 2
MATCH (col1,col2,...) AGAINST (expr [search_modifier])
A full-text index in MySQL is an index of type FULLTEXT.
Full-text indexes can be used only with MyISAM tables, and
can be created only for CHAR, VARCHAR, or TEXT columns. A
FULLTEXT index definition can be given in the CREATE TABLE
statement when a table is created, or added later using
ALTER TABLE or CREATE INDEX.
For large data sets, it is much faster to load your data
into a table that has no FULLTEXT index and then create the
index after that, than to load data into a table that has an
existing FULLTEXT index.
Full-text searching is performed using MATCH() ... AGAINST
syntax.
MATCH() takes a comma-separated list that names the columns
to be searched.
AGAINST takes a string to search for, and an optional
modifier that indicates what type of search to perform.
Three types of full-text searches
1. A Boolean search interprets the search string using the
rules of a special query language.
2. A natural language search interprets the search string as
a phrase in natural human language (a phrase in free text).
There are no special operators.
3. A query expansion search is a modification of a natural
language search.
 
Is This Answer Correct ?    0 Yes 0 No
Kishore
 
 
 

 
 
 
Other PHP Interview Questions
 
  Question Asked @ Answers
 
What are the differences between Get and post methods in form submitting, give the case where we can use get and we can use post methods? Rushmore-Consultancy8
To find out the current year is leap year or not which date() function we've to use.Give the syntax also  4
What is the Diff. Between echo() and Print() in PHP? CoreNet22
how many ways we get current date in php  5
This question is regarding version control. If two developers are committing the same php file at same time what will happen ? What error it will show (if any) ? TCS1
how to maintained the session from one page to another page based on the url and then entered into the first page is logging into instead of secondpage it goes to the another url.ie first login session togoes to the one url and next login session it goes to another url how is it possible in php please give me answer in that question iCynergy1
I have 10 elements of Array, how can i remove 5 array element, with single function.  11
What type of headers have to add in the mail function in which file a attached?  2
how to upload more than 50 mb? i tried but session was expired....certain time .....i was set session duration three days .... how to rectified? if any one know that post ur answer as soon as possible?already i was increase php.ini but not working......  2
how to insert logout time when browser close  1
What is the difference between the functions unlink and unset? TCS2
how can refresh current page automatically, without press any button and anchor tag.  5
How can we create a database using PHP and mysql? Rushmore-Consultancy3
how many error types in php? name there?  3
How can I check if a value is already in an array? Rushmore-Consultancy2
what is the default method of form in php?  5
Is it possible to get the screen resolution and like with php?  1
What is the purpose of the following files having extensions 1) .frm 2) .myd 3) .myi? What do these files contain?  2
how we can use lamp.ie installatiion and basic workings.Is it similar to wamp in usage?  1
what is DDL and DML?  5
 
For more PHP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com