Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 20-06-2012 21:40:54

CanvasCampers
Mayor
From: Pennsylvania, USA
Registered: 14-06-2012
Posts: 5

Keyword Search

Does the keyword search look at the meta field, recipe title or all text?

Offline

#2 21-06-2012 07:25:43

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,065

Re: Keyword Search

It searches the following:

name,instructions,ingredients,submitted_by,metaDesc,metaKeys


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#3 19-09-2012 14:57:10

vion1
Members
Registered: 19-09-2012
Posts: 2

Re: Keyword Search

msworld wrote:

It searches the following:

name,instructions,ingredients,submitted_by,metaDesc,metaKeys

Hello,
Where I can change this setting? I want to do the search only in the "name" field...
Thank you very much for you script!
regards
vion

Offline

#4 20-09-2012 08:50:34

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,065

Re: Keyword Search

Hi Vion,

Nice to hear from you. You`ll find the search queries in the 'search.php' file. Its a standard LIKE query for words 3 chars or less and a FULLTEXT search for the rest. MYSQL doesn`t support FULLTEXT searching on words of 3 chars or less.

So, just modify the queries and remove the fields you don`t need.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#5 20-09-2012 09:59:19

vion1
Members
Registered: 19-09-2012
Posts: 2

Re: Keyword Search

Hello,

thank you for you reply.

Please can you tell me where I can find the file search.php? smile
I found only search.tpl.php..

thanks

Offline

#6 20-09-2012 16:30:16

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,065

Re: Keyword Search

Sorry, I`m getting myself confused. tongue

index.php file line 638. Just change:

MATCH(name,instructions,ingredients,submitted_by,metaDesc,metaKeys)

to

MATCH(name)


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy