Improving the performance of the basic internal search tool - eSyndiCat User Forums
eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > Modifications

Modifications Simple to complex modifications, made by users or by our team, applied to logic or presentation, all kinds of modifications are discussed and requested here.

Reply
 
Thread Tools Display Modes
Old 02-28-2011   #1
afroken
 
Join Date: Feb 2011
Location: UK
Posts: 1
afroken is on a distinguished road
Default Improving the performance of the basic internal search tool

Hi there,

We've just bought eSyndicat script and its all going ok so far.

But we've hit a small problem with the internal search engine. We are using the directory script to browse and search company listings and each company listing in the directory has the usual fields: -
  • company name
  • address
  • web address
  • email /tel number
  • etc, etc

So when I tested the search by searching for the only companies with a certain town/country name, the search script came up short with no results.

Tried it with a few more and got the same results.

It was only when using the advanced search tool that I could then find the listings I was looking form.

My question is this:
Is there a way to get basic search to find these listings as advanced search does but by making the address, description postcode etc etc fields default for the script to keyword match?

Any help would be great!
afroken is offline   Reply With Quote
Old 06-23-2011   #2
tyronepinnoy
 
Join Date: Jan 2011
Posts: 1
tyronepinnoy is on a distinguished road
Default

Quote:
Originally Posted by afroken View Post
Hi there,

We've just bought eSyndicat script and its all going ok so far.

But we've hit a small problem with the internal search engine. We are using the directory script to browse and search company listings and each company listing in the directory has the usual fields: -
  • company name
  • address
  • web address
  • email /tel number
  • etc, etc

So when I tested the search by searching for the only companies with a certain town/country name, the search script came up short with no results.

Tried it with a few more and got the same results.

It was only when using the advanced search tool that I could then find the listings I was looking form.

My question is this:
Is there a way to get basic search to find these listings as advanced search does but by making the address, description postcode etc etc fields default for the script to keyword match?

Any help would be great!
hi, have you had any joy with this request ?
tyronepinnoy is offline   Reply With Quote
Old 06-27-2011   #3
Alex B.
Tech Support
 
Alex B.'s Avatar
 
Join Date: Oct 2008
Posts: 1,069
Alex B. is on a distinguished road
Default

Hello!
Welcome to our support forums!
The basic search is browsing only within titles, urls, and descriptions.
If you want to add some fields you should edit the file includes/classes/esynListing.php

Find the function searchCriterias
[ Find this code inside the function ]
PHP Code:
$tmp[] = "(CONCAT(`t1`.`url`,' ',`t1`.`title`,' ',`t1`.`description`) LIKE '%{$word}%')"
and
PHP Code:
$sql .= "WHERE (CONCAT(`t1`.`url`,' ',`t1`.`title`,' ',`t1`.`description`) LIKE '%{$aWhat}%')"
[ After `description` add this code ]
PHP Code:
,' ',`t1`.`name_of_the_field
where «name_of_the_field» is the field name you want to browse too.
You may add a few fields at once:
[ After `description add this code ]
PHP Code:
,' ',`t1`.`name_of_the_field1`,' ',`t1`.`name_of_the_field2`,' ',`t1`.`name_of_the_field3` .............. 
__________________
Best Regards, Alex B.
HELPDESK
Alex B. is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:25 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us | SEO Resources