Forums / All Other Contributions/Addons / Codetrio Sphinx Search Version 1.0 Support Thread

Codetrio Sphinx Search Version 1.0 Support Thread

Results 1 to 6 of 6
21 Apr 2014, 14:01
#1
imranulh avatar

imranulh

New Zenner

Join Date:
Jun 2005
Posts:
21
Plugin Contributions:
1

Codetrio Sphinx Search Version 1.0 Support Thread

Codetrio Sphinx Search is a replacement for the default search of Zencart.
For large zencart stores the default search is slow and the result sometimes may not be relevant.
Sphinx is a popular open source full text search server that can blow your mind with their search speed.
Read more about Sphinx on their official website: http://sphinxsearch.com/
30 Apr 2014, 18:35
#2
limitless avatar

limitless

Inactive

Join Date:
Jan 2012
Posts:
496
Plugin Contributions:
0

Re: Codetrio Sphinx Search Version 1.0 Support Thread

Great work getting this working.

I have done the initial installation, built up the indexes, etc.

But when I search for anything (known keywords) it returns no results found.

the query.log and searchd.lo show nothing.

I do see 'hits' in the query log when I do a search.

==> query.log <==
[Wed Apr 30 12:32:52.211 2014] 0.000 sec 0.000 sec [ext2/0/ext 0 (0,20)] [ct_search_contents_index] *
[Wed Apr 30 12:33:02.842 2014] 0.000 sec 0.000 sec [ext2/0/ext 0 (0,20)] [ct_search_contents_index] *

When I generated the index, this is what was returned:

using config file '/home/xxxxxxxxxxxx/htdocs/sphinx/sphinx.conf'...
indexing index 'ct_search_contents_index'...
collected 42210 docs, 28.6 MB
sorted 103.7 Mhits, 100.0% done
total 42210 docs, 28568223 bytes
total 94.599 sec, 301991 bytes/sec, 446.19 docs/sec
total 1759 reads, 10.218 sec, 301.7 kb/call avg, 5.8 msec/call avg
total 1198 writes, 2.239 sec, 848.7 kb/call avg, 1.8 msec/call avg
rotating indices: successfully sent SIGHUP to searchd (pid=31816).



Also, 'CodeTrio Search' is returned instead of 'Search Results' or whatever it was before.

That needs to be modified here:

STORE_ROOT/includes/languages/english/ct_search_result.php

Should HEADING_TITLE be changed to Search Results in the above file?

define('NAVBAR_TITLE_1', 'Codetrio Search');
define('NAVBAR_TITLE_2', 'Search Results');

define('HEADING_TITLE', 'Codetrio Search');

define('HEADING_SEARCH_CRITERIA', 'Search Criteria');
04 May 2014, 06:38
#3
imranulh avatar

imranulh

New Zenner

Join Date:
Jun 2005
Posts:
21
Plugin Contributions:
1

Re: Codetrio Sphinx Search Version 1.0 Support Thread

Hi Limitless,

Sorry for the delay. Had been busy and the zencart site has been giving 403 permission denied error lots of time I try to login.

If you have done the installation properly, The only reason would be the sphinx config your sphinx server is using.
Do the following:

1. Kill all the searchd processes running in your machine.
To do that use the following command to list the processes
>> ps aux | grep searchd

You should get the process ids in the list. Then kill the processes by
>> kill PROCESS_ID

2. Start searchd with the correct configuration, by

>> searchd -c YOUR_STORE_ROOT/sphinx/sphinx.conf

You should be able to search now.

You are correct regarding the language file. I did copy the default search result language file. Need to clean the file. I will do that and upload a version soon.

Happy searching
06 May 2014, 03:55
#4
limitless avatar

limitless

Inactive

Join Date:
Jan 2012
Posts:
496
Plugin Contributions:
0

Re: Codetrio Sphinx Search Version 1.0 Support Thread

imranulh:

Hi Limitless,

Sorry for the delay. Had been busy and the zencart site has been giving 403 permission denied error lots of time I try to login.

If you have done the installation properly, The only reason would be the sphinx config your sphinx server is using.
Do the following:

1. Kill all the searchd processes running in your machine.
To do that use the following command to list the processes
>> ps aux | grep searchd

You should get the process ids in the list. Then kill the processes by
>> kill PROCESS_ID

2. Start searchd with the correct configuration, by

>> searchd -c YOUR_STORE_ROOT/sphinx/sphinx.conf

You should be able to search now.

You are correct regarding the language file. I did copy the default search result language file. Need to clean the file. I will do that and upload a version soon.

Happy searching


Yep. I am absolutely using the proper config file. I will step through the config/installation again, but I did not see my searches actually hitting sphinx in the sphinx logs.
09 May 2014, 19:53
#5
377704497 avatar

377704497

New Zenner

Join Date:
Mar 2009
Posts:
14
Plugin Contributions:
0

Re: Codetrio Sphinx Search Version 1.0 Support Thread

Your module does not work at all.
no matter what keyword you enter to search,it always returns the same result.
my site is http://www.idevopen.com/
do you know what is the problem?
16 Jul 2014, 00:24
#6
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Codetrio Sphinx Search Version 1.0 Support Thread

Does not work.