| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Improved Search Function | ||||
|
|
Thread Tools | Search this Thread |
#141
|
|||||||||
|
|||||||||
http://www.cs.ioc.ee/~ando/sphider/index.php
Not a completely integrated solution but defiantly a band aid or good starting point!
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#142
|
|||||||
|
|||||||
Definately Boomer, it seems a tad redundant unless you think the indexed DB of the Spider would run faster than X-carts search???
None the less thanks for this linke looks like a nice spider. Thanks. I want to use the mod that I posted or reposted on page 9 to do this. I think it is very doable quick hack. Upon Second thought a large portion of the search.php needs to be redone. Learning more about coding for searching I have learned just how inefficent the methode x-cart uses. I think Boomer has a Point with his Recommended 3rd party spider. From all my reading this is the best way to go period. I will give this app a whirl if I can install it let you know how it goes. Scott
__________________
\"Then again it could all be horse crap\" by some old Guy. 4.013 |
|||||||
#143
|
|||||||
|
|||||||
I agree with Boomer, the Sphider software would be be good starting point if it could be integrated with X-Cart.
I took a look at the Sphider software, downloaded the files for it, and went to many of the sites that are using the software. It looks pretty impressive and if it could be incorporated into XCart, I would definately give it a try.
__________________
Mike X-Cart Gold Version 4.6.0 PHP 5.2.17 |
|||||||
#144
|
|||||||
|
|||||||
I JUST hit this wall with a client
He was VERY frustrated with the search. (IMHO only lazy search engines only used exact phrase matching 30 years ago)
I took a look at this hack and while it was good I found an even better way. 1) It breaks apart the search critera. 2) Searches for each word individually (so brass knob will return results with 'brass knob', 'knob brass', brass and knob) 3) Then Scores the hits with the following rules. 5 if the exact search phrase appears in the title 3 if the exact search phrase appears in the description Individual words are scored with the following method If the FIRST word in search phrase appears in the title it gets 4 points If the Second word in search phrase appears in the title it gets 4 - (4/number of search words). If the third word in search phrase appears in the title it gets 4 - 2(4/number of search words). And so on. The same is true for the description except starting with 3. This allows for more important words to be placed FIRST in the search. 4) Sorts the hits descending (highest score at the top). I'm testing it now... Additional scorings of results could be added (ie a SKU hit could be given a 7 or a price hit a 3) so searches for a product with brass that has a price of 3.50 could be searched by typing 'brass 3.50' One failing of my code is that it destroys multiple languages. When I get it tested and cleaned up I'll post the changes.
__________________
|
|||||||
#145
|
|||||||
|
|||||||
I'd be very interested in your solution leighj. Also, if you post what you've got now, we might be able to help with the code-polishing.
|
|||||||
#146
|
|||||||
|
|||||||
Improved Search
It looks like this topic is still a concern to others as it has been to me. I am not a programmer or developer but I was able to incorporate the Spider Search in my shop. I've used it now for about a month and have been very happy with it. It took alot of hacking and my store has been modified quite a bit, but if someone is interested in files, I'd be glad to send them to you.
The site is here: www.HilltopTreasures.com
__________________
Mike X-Cart Gold Version 4.6.0 PHP 5.2.17 |
|||||||
#147
|
|||||||
|
|||||||
Yes
If you got a better search option I could use the files. X-Carts search engine is horrible! Can you post the files?
__________________
William McCoy Online Manager Colonial Medical Version 4.0.13 |
|||||||
#148
|
|||||||
|
|||||||
Ok here's some code....
Ok here's the code
A FEW NOTES
Code:
Look for the Sort Conditions Code:
Look for Generate Additional Fields String section Code:
FINALLY if you want you can addthis to the product list template to get the score Code:
__________________
|
|||||||
#149
|
|||||||
|
|||||||
It appears My search.php version is different than yours. Can you post the whole search.php code? or can you email it to me wmccoy@colonialmedical.com
I would greatly appretiate it.
__________________
William McCoy Online Manager Colonial Medical Version 4.0.13 |
|||||||
#150
|
|||||||
|
|||||||
This is for the current 4.0.16 Version if possible upgrade to this version as I'm not sure if this will work with earlier versions...
Quote:
__________________
|
|||||||
|
|||
X-Cart forums © 2001-2020
|