Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2014-09-08 19:18:18

ful2fun.com
Member
From: Usa
Registered: 2011-09-16
Posts: 1,048
Website

Sphinx Configuration for 2 Websites.

Hello  Friends,

I recently shifted my ASS and ASPro site to Single server and I like to use Sphinx for both sites. So what .conf file I should have. I means I have to create 2 .conf file like 1.conf and 2.conf Or I have to but both configuration in same file sphinx.conf

Offline

#2 2014-09-09 07:12:23

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Sphinx Configuration for 2 Websites.

One config with the two configuration blocks. One for Adult Script Pro and one for Adult Search Script. For both scripts in SPHINX.txt you have the exact config block that you need to add.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2014-09-09 08:48:44

ful2fun.com
Member
From: Usa
Registered: 2011-09-16
Posts: 1,048
Website

Re: Sphinx Configuration for 2 Websites.

can you give small example how to add both configuration in one file.

Offline

#4 2014-09-09 09:53:20

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Sphinx Configuration for 2 Websites.

source adultsearchscript
{
    type        = mysql
    sql_host    = localhost
    sql_user    = mpclips
    sql_pass    = mpclips
    sql_db      = mpclips
    sql_sock    = /var/lib/mysql/mysql.sock
    sql_port    = 3306
    
    sql_query_pre   = SET NAMES utf8
    sql_query_range = SELECT MIN(video_id),MAX(video_id) FROM video
    sql_range_step  = 1000
    sql_query       = \
    SELECT v.video_id, v.source_id, v.title, v.add_time, v.rating, \
         v.total_views, v.duration, v.orientation, v.video_id AS video, \
         GROUP_CONCAT(DISTINCT t.name SEPARATOR ' ') AS tags \
    FROM video AS v \
    LEFT JOIN video_tags AS t ON (t.video_id = v.video_id) \
    WHERE v.video_id >= $start AND v.video_id <= $end \
    AND v.status = 1 \
    GROUP BY v.video_id
    
    sql_attr_uint       = video
    sql_attr_uint       = total_views
    sql_attr_uint       = source_id
    sql_attr_uint       = orientation
    sql_attr_uint       = duration
    sql_attr_float      = rating
    sql_attr_timestamp  = add_time
    sql_query_info      = SELECT video_id, add_time FROM video WHERE video_id=$id
}

index adultsearchscript
{
    source          = adultsearchscript
    path            = /var/lib/sphinx/adultsearchscript
    charset_type    = utf-8
    min_prefix_len  = 3
    enable_star     = 1
    morphology      = stem_en
}

source videos
{
    type        = mysql
    sql_host    = localhost
    sql_user    = asp
    sql_pass    = asp
    sql_db      = asp_b4
    sql_sock    =  /var/run/mysqld/mysqld.sock
    sql_port    = 3306

    sql_query_pre   = SET NAMES utf8
    sql_query       = \
    SELECT v.video_id, v.title, v.description, v.mobile, v.add_time, \
         v.rating, v.total_views, v.duration, v.video_id AS video, \
         GROUP_CONCAT(DISTINCT t.name SEPARATOR ' ') AS tags \
    FROM video AS v \
    LEFT JOIN video_tags AS t ON (t.video_id = v.video_id) \
    AND v.status = 1 \
    GROUP BY v.video_id

    sql_attr_uint       = video
    sql_attr_uint       = mobile
    sql_attr_uint       = total_views
    sql_attr_float      = duration
    sql_attr_float      = rating
    sql_attr_timestamp  = add_time
    sql_attr_multi      = uint categories FROM query; SELECT video_id, cat_id FROM video_category
    sql_query_info      = SELECT video_id, add_date FROM video WHERE video_id=$id
}

index videos
{
    source          = videos
    path            = /var/lib/sphinxsearch/data/videos
    charset_type    = utf-8
    min_prefix_len  = 3
    enable_star     = 1
}


indexer
{
	mem_limit		= 128M
}


searchd
{
	listen			= 127.0.0.1:9312
	log			= /var/log/sphinx/searchd.log
	query_log		= /var/log/sphinx/query.log
	read_timeout		= 5
	max_children		= 30
	pid_file		= /var/run/sphinx/searchd.pid
	max_matches		= 100000
	seamless_rotate		= 1
	preopen_indexes		= 1
	unlink_old		= 1
	workers			= threads # for RT to work
	binlog_path		= /var/lib/sphinx/
}

Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#5 2015-01-26 15:16:46

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Sphinx Configuration for 2 Websites.

Hey adrian ,

i have add all my ass sites and work perfect. i add asp site and show that indexed but in search on site not show any result.
any suggestion to fix that?

Offline

#6 2015-01-27 10:19:23

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: Sphinx Configuration for 2 Websites.

Adrian I have send you email and I didn't get reply.

thanks

Offline

#7 2015-01-27 20:52:42

ful2fun.com
Member
From: Usa
Registered: 2011-09-16
Posts: 1,048
Website

Re: Sphinx Configuration for 2 Websites.

there might be code issue you added for ass. If you can post demo code not with original mysql login. I can help You. As in latest sphinx some lines have to be deleted from above given code

Offline

Board footer

Powered by FluxBB