Moderated by: FocalMedia Team, Miles, Gerrit, Rian

FocalMedia.Net Forums » Other Products »  FM SiteSearch Pro

Page: 1 of 1

« Back to Topic Index Page 1 | Replies: 3

 Author  Topic: Exact phrase search
  just4fun

New Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of just4fun 
Hi,

I have tried out the script today and so far my experience are positive, easy to install and user friendly interface. But is miss one oppertunety : Is there any way to make a search for an "exact phrase" ?

Example : I whant to search the acctor "Tom Hanks" on my site. Usually you write "Tom Hanks" in the search filed to get an exact phrase, but when you do this on FM search you get .... no results since the search also inludes the "" . If i search for Tom Hanks i only whant the results where the exact phrase "Tom Hanks" is to find. But now i also get up all pages that have the name Tom as well....... i know i can find exact phrase if i use advansed search, but i think this also should be possible thrue the "simple search" as well......

P.S: i notice that its possible to use + and - in the search, is there other variables to use as well ?


Total Posts: 2 | Joined: Aug 18, 2003 - 2:45pm | IP Logged

FocalMedia Team

Moderator
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of FocalMedia Team 
The normal search will provide relevance to phrase matches, whole words and partial words. Phrase matches will usually displayed at the top because they will be most relevant.

If you only want to do phrase matches you can use the advanced search form by including hidden variables in the form without giving the end user the options of the advanced search.

The form could then look something like this:

<form method="POST"
action="http://yourdomain.com/cgi-bin/fmsearch/fmsearch.cgi">

<input type="text" name="keywords" size="40">

<input type="hidden" name="advanced" value="advanced">

<input type="hidden" name="phrase" value="ON">

<input type="hidden" name="spt" value="ON" checked>

<input type="hidden" name="spmd" value="ON" checked>

<input type="hidden" name="spmk" value="ON" checked>

<input type="hidden" name="spc" value="ON" checked>

<input type="hidden" name="e_phrase" value="ON">

<input type="submit" value=" Search "
name="button"></form>



Miles


Total Posts: 1441 | Joined: Jul 27, 2002 - 4:28am | IP Logged

just4fun

New Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of just4fun 
Hi again,

Accually i have tried this, and it works fine as long as you use at least two words ...

If i search for "Tom Hanks" i get only pages with this phrases, but if i use same "search form" and enter only one word i get 0 results....... ( like if i search for "Tom" )

Total Posts: 2 | Joined: Aug 18, 2003 - 2:45pm | IP Logged

FocalMedia Team

Moderator
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of FocalMedia Team 
Maybe you should then enable whole words too. The phrase matches will usually pop-up first.

Miles


Total Posts: 1441 | Joined: Jul 27, 2002 - 4:28am | IP Logged


Lock Topic

 

Forum Legend

New Member

Reply to topic

More than 50 posts | Member

Reply to topic with quoted message

More than 100 posts | Full Member

Edit Message

More than 150 posts | Advanced Member

View profile

More than 200 posts | Advanced Member

Email member