You are here:  » Searching the description

Support Forum



Searching the description

Submitted by kimarie on Sun, 2010-06-13 11:44 in

When I use the current search on my site it doesn't find lots of the products for some merchants as their brand or colour etc. are in the description, is there a way to change the search to search teh description as well as the title?
Thank you!

Submitted by support on Mon, 2010-06-14 08:25

Hi,

You can enable description search in config.advanced.php - change line 10 as follows:

  $config_searchDescription = TRUE;

Then, browse to /setup.php on your site, and you'll see a link to build the name+description full text index.

Cheers,
David.

Submitted by kimarie on Tue, 2010-06-15 11:16

Thank you, it is now working, however, is there a way to make the search results more exact? When I search for pink dress http://www.offersboutique.co.uk/shopping/search.php?q=pink+dress I get dresses, tops, jeans etc. when I just want pink dresses.

Submitted by support on Tue, 2010-06-15 12:18

Hi,

That's happening because the full text search method by default works by relevance, so whilst it should be returning products containing PINK and DRESS first, you can make it only return results containing all words by implementing the BOOLEAN MODE modification described here...

http://www.pricetapestry.com/node/2182#comment-13876

Cheers,
David.

Submitted by goldengirl on Tue, 2010-06-15 15:58

Hi can anyone tell me where to find config.advanced.php so I can enable description searching? Thanks

Submitted by support on Tue, 2010-06-15 16:12

Hi goldengirl,

I notice you've been using Price Tapestry for some time - config.advanced.php is new in the latest distribution (November 2009) so I think you're still running the original distribution.

Perhaps the easiest thing to do is if you could email me your existing search.php, and then i'll add the code to include description in search for you, and send you the database modification script to create the name+description full text index...

Cheers,
David.

Submitted by goldengirl on Tue, 2010-06-15 16:22

Just sent you the file. :)

Buy TVs online