Re: [ts] Thinking Sphinx v3 and realtime indexes

1,177 views
Skip to first unread message

Pat Allan

unread,
Jan 14, 2013, 6:25:34 AM1/14/13
to thinkin...@googlegroups.com
Hi Govinda

Looks like you've hit one thing I've not mentioned - but I should have: because you're dealing with methods, not columns, it's not possible for Thinking Sphinx to discern attribute types automatically. So, you'll need to specify the type:

has image_origin_id, :as => :origin, :type => :integer

Give that a spin, let us know how you go.

Cheers

--
Pat

On 14/01/2013, at 10:15 PM, govinda....@googlemail.com wrote:

> Hello guys,
>
> after the announcement here https://github.com/pat/thinking-sphinx/issues/186 that there is some support for realtime indexes I gave it shot and tried to port my existing (and working) thinking_sphinx v2 indexes and tried to port them to the new v3 syntax...
>
> ThinkingSphinx::Index.define :image, :with => :real_time do
> # indexes assoc(:file)
> indexes file_width
> indexes file_height
> indexes file_colorspace
> indexes file_content_type, :as => :file_type
> indexes file_resolution
> indexes file_depth
> indexes description
> indexes category
> indexes tags
> indexes campaigns
> indexes image_type.name, :as => :image_type_name
> # has "CRC32(file_chromaticity)", :as => :chromaticity, :type => :integer
> # has "CRC32(file_aspect_ratio)", :as => :aspect_ratio, :type => :integer
> has image_origin_id, :as => :origin
> # has image_licencetype_id, :as => :licencetype
> # has image_type_id, :as => :image_type
> # has client_id
> # has user_id
> # has created_at
> # has updated_at
> # has status
> end
>
> When I do a "rake ts:generate" I get the following error:
>
> rake aborted!
> Unknown attribute type ''
>
> Does anybody know how I have to change my indexes to get them to play nicely with sphinx3?
> I am using the edge branch with Rails 3.2.9, Ruby 1.9.3 and sphinx 2.0.6.
>
> Cheers, Govinda
>
> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/alt4z1a6To8J.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.


govinda....@googlemail.com

unread,
Jan 14, 2013, 6:26:50 AM1/14/13
to thinkin...@googlegroups.com
You are always so fast with your answers. Just awesome!
I'll try it... 

Pat Allan

unread,
Jan 14, 2013, 6:29:06 AM1/14/13
to thinkin...@googlegroups.com
Hah, not always - just caught me on my last email burst before I get some sleep (hence, my next response may not be so prompt!)

--
Pat

> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.

> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/QIwa-lt68y4J.

govinda....@googlemail.com

unread,
Jan 14, 2013, 7:30:21 AM1/14/13
to thinkin...@googlegroups.com
Now I am curious how long it takes :-)

My next problem is with the following line:

  has image_type_id, :as => :image_type, :type => :integer

When I do I rake ts:generate I get:

Error with statement: REPLACE INTO image_core (id, sphinx_internal_class_name, file_width, file_height, file_colorspace, file_type, file_resolution, file_depth, description, category, tags, campaigns, image_type_name, sphinx_internal_id, sphinx_internal_class, sphinx_deleted, origin, image_type) VALUES (2640, 'Image', '867', '442', 'DirectClass sRGB Matte', 'application/pdf', '72', '16', '', 'client_images', '', '', '', 1320, 'Image', 0, 0, 0)
rake aborted!
unknown column: 'image_type'

govinda....@googlemail.com

unread,
Jan 14, 2013, 7:37:36 AM1/14/13
to thinkin...@googlegroups.com
and I also have a problem with the following index declarations:

  has "CRC32(file_chromaticity)", :as => :chromaticity, :type => :integer

The error I get is:
Generating index files for image_core
rake aborted!
undefined method `__name' for "CRC32(file_chromaticity)":String
-e:1:in `<main>'
Tasks: TOP => ts:generate
(See full trace by running task with --trace)

and the line

  indexes assoc(:file)

produces the following error:
Generating index files for image_core
rake aborted!
undefined method `assoc' for #<Image:0x007f979ffccb30>
-e:1:in `<main>'
Tasks: TOP => ts:generate
(See full trace by running task with --trace)

and the line
   has user_id, :type => :integer

produces the following error:

Generating index files for image_core
Error with statement: REPLACE INTO image_core (id, sphinx_internal_class_name, file_width, file_height, file_colorspace, file_type, file_resolution, file_depth, description, category, tags, campaigns, image_type_name, sphinx_internal_id, sphinx_internal_class, sphinx_deleted, origin, client_id, user_id) VALUES (2640, 'Image', '867', '442', 'DirectClass sRGB Matte', 'application/pdf', '72', '16', '', 'client_images', '', '', '', 1320, 'Image', 0, 0, 11, 0)
rake aborted!
unknown column: 'client_id'
-e:1:in `<main>'
Tasks: TOP => ts:generate
(See full trace by running task with --trace)

Cheers,

Govinda

govinda....@googlemail.com

unread,
Jan 14, 2013, 8:15:55 AM1/14/13
to thinkin...@googlegroups.com
OK. And the next problem I have when I generate a realtime index with only the attributes that I got working until now is
that searching seems not work at all for me:

[13] pry(main)> Image.search('sphinx')
[]

But when I am connecting directly to sphinx via mysql:

mysql> select * from image_core where match('sphinx');
+------+--------+--------------------+----------------+--------+-----------------------+
| id   | weight | sphinx_internal_id | sphinx_deleted | origin | sphinx_internal_class |
+------+--------+--------------------+----------------+--------+-----------------------+
| 3390 |   1692 |               1695 |              0 |      3 | Image                 |
| 3392 |   1692 |               1696 |              0 |      3 | Image                 |
| 3394 |   1692 |               1697 |              0 |      3 | Image                 |
+------+--------+--------------------+----------------+--------+-----------------------+
3 rows in set (0.00 sec)

I am a little lost what I might be doing wrong...

Pat Allan

unread,
Jan 14, 2013, 6:32:19 PM1/14/13
to thinkin...@googlegroups.com
For this error (and the user_id one that's pretty much the same), you'll want to delete your index files and run ts:configure again - your Sphinx configuration isn't automatically updated with the ts:generate task (but perhaps it should be!)

--
Pat

> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.

> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/dEA7kfrcuWgJ.

Pat Allan

unread,
Jan 14, 2013, 6:38:33 PM1/14/13
to thinkin...@googlegroups.com
On 14/01/2013, at 11:37 PM, govinda....@googlemail.com wrote:

> and I also have a problem with the following index declarations:
>
> has "CRC32(file_chromaticity)", :as => :chromaticity, :type => :integer
>
> The error I get is:
> Generating index files for image_core
> rake aborted!
> undefined method `__name' for "CRC32(file_chromaticity)":String
> -e:1:in `<main>'
> Tasks: TOP => ts:generate
> (See full trace by running task with --trace)

Firstly - you're using a SQL snippet, and real-time indices don't touch the database - in this situation, Thinking Sphinx communicates directly between your Rails models and Sphinx. Also, there's no support in Thinking Sphinx v3 for CRC32 encoding… mind you, you could add it itself.

Perhaps something like this within the model (and add a "require 'zlib'" at the top of your model):

def file_chromaticity_to_crc32
Zlib.crc32 file_chromaticity
end

And then in your index definition, you can reference that method:

has file_chromaticity_to_crc32, :as => :chromaticity, :type => :integer

> and the line
>
> indexes assoc(:file)
>
> produces the following error:
> Generating index files for image_core
> rake aborted!
> undefined method `assoc' for #<Image:0x007f979ffccb30>
> -e:1:in `<main>'
> Tasks: TOP => ts:generate
> (See full trace by running task with --trace)

You don't need this line - because you're dealing with Ruby, not SQL, there's no need to specify joins.

Cheers

--
Pat



Pat Allan

unread,
Jan 14, 2013, 6:40:52 PM1/14/13
to thinkin...@googlegroups.com
This one's a little more surprising… you should see the full SphinxQL command in your logs when Image.search is called - can you confirm what that is, and whether you see results using it directly via mysql?

--
Pat

> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.

> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/EK7lcZXrOMIJ.

govinda....@googlemail.com

unread,
Jan 15, 2013, 8:20:05 AM1/15/13
to thinkin...@googlegroups.com
What do you mean by logs... the rails logs, sphinx logs or mysql logs... ?

After adjusting my index definition according to your recent replies ... I did a 

rake ts:configure

which went fine

and then a   

rake ts:generate --trace                                                                                                          [8s] 
** Invoke ts:generate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute ts:generate
Generating index files for image_core
rake aborted!
Can't connect to MySQL server on '127.0.0.1' (61)
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `initialize'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/bundler/gems/thinking-sphinx-0098973687d0/lib/thinking_sphinx/connection.rb:35:in `new'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/bundler/gems/thinking-sphinx-0098973687d0/lib/thinking_sphinx/connection.rb:35:in `initialize'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/bundler/gems/thinking-sphinx-0098973687d0/lib/thinking_sphinx/connection.rb:14:in `new'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/bundler/gems/thinking-sphinx-0098973687d0/lib/thinking_sphinx/connection.rb:14:in `new'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/bundler/gems/thinking-sphinx-0098973687d0/lib/thinking_sphinx/connection.rb:26:in `block in pool'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/innertube-1.0.2/lib/innertube.rb:120:in `call'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/innertube-1.0.2/lib/innertube.rb:120:in `block in take'
<internal:prelude>:10:in `synchronize'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/innertube-1.0.2/lib/innertube.rb:116:in `take'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/bundler/gems/thinking-sphinx-0098973687d0/lib/thinking_sphinx/real_time/transcriber.rb:16:in `copy'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/bundler/gems/thinking-sphinx-0098973687d0/lib/thinking_sphinx/rake_interface.rb:21:in `block (2 levels) in generate'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/global/gems/activerecord-3.2.9/lib/active_record/relation/batches.rb:21:in `block (2 levels) in find_each'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/global/gems/activerecord-3.2.9/lib/active_record/relation/batches.rb:21:in `each'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/global/gems/activerecord-3.2.9/lib/active_record/relation/batches.rb:21:in `block in find_each'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/global/gems/activerecord-3.2.9/lib/active_record/relation/batches.rb:72:in `find_in_batches'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/global/gems/activerecord-3.2.9/lib/active_record/relation/batches.rb:20:in `find_each'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/global/gems/activerecord-3.2.9/lib/active_record/querying.rb:8:in `find_each'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/bundler/gems/thinking-sphinx-0098973687d0/lib/thinking_sphinx/rake_interface.rb:20:in `block in generate'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/bundler/gems/thinking-sphinx-0098973687d0/lib/thinking_sphinx/rake_interface.rb:13:in `each'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/bundler/gems/thinking-sphinx-0098973687d0/lib/thinking_sphinx/rake_interface.rb:13:in `generate'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/bundler/gems/thinking-sphinx-0098973687d0/lib/thinking_sphinx/tasks.rb:14:in `block (2 levels) in <top (required)>'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/task.rb:228:in `call'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/task.rb:228:in `block in execute'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/task.rb:223:in `each'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/task.rb:223:in `execute'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/task.rb:166:in `block in invoke_with_call_chain'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/task.rb:159:in `invoke_with_call_chain'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/task.rb:152:in `invoke'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/application.rb:143:in `invoke_task'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/application.rb:101:in `each'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/application.rb:101:in `block in top_level'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/application.rb:110:in `run_with_threads'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/application.rb:95:in `top_level'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/application.rb:73:in `block in run'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/lib/rake/application.rb:70:in `run'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/gems/rake-10.0.3/bin/rake:33:in `<top (required)>'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/bin/rake:23:in `load'
/Users/govindafichtner/.rbenv/versions/1.9.3-p194-perf/gemsets/imageserver/bin/rake:23:in `<main>'
Tasks: TOP => ts:generate


This is a little weird because I can connect to the database with rails and also with the mysql command line just fine...

Govinda

Pat Allan

unread,
Jan 15, 2013, 8:23:04 AM1/15/13
to thinkin...@googlegroups.com
It's actually complaining that it can't connect to Sphinx - you need to run ts:start after ts:configure, and *then* ts:generate, as Thinking Sphinx talks to the daemon to load up the data.

And sorry, I wasn't clear with that comment about the logs. I meant the Rails logs.

Cheers

--
Pat

> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/7-gJ17EdG-gJ.

govinda....@googlemail.com

unread,
Jan 15, 2013, 9:02:51 AM1/15/13
to thinkin...@googlegroups.com
OK. Now we are nearly there... the index generation worked without errors.

But searching is still not working...

In a Rails console I did:
pry(main)> Image.search "sphinx"
[]
pry(main)> ThinkingSphinx.search 'sphinx'
[]

But when I connect with mysql directly to Sphinx I get three results:
mysql> select * from image_core where match('sphinx');
+------+--------+--------------------+----------------+--------------+--------------+--------+------------+-------------+-----------+---------+------------+------------+-----------------------+
| id   | weight | sphinx_internal_id | sphinx_deleted | aspect_ratio | chromaticity | origin | image_type | licencetype | client_id | user_id | created_at | updated_at | sphinx_internal_class |
+------+--------+--------------------+----------------+--------------+--------------+--------+------------+-------------+-----------+---------+------------+------------+-----------------------+
| 3390 |   1692 |               1695 |              0 |   2410462618 |   3828862733 |      3 |        151 |           0 |        24 |  114367 | 1354014113 | 1358164002 | Image                 |
| 3392 |   1692 |               1696 |              0 |     67325096 |   3828862733 |      3 |        146 |           0 |        24 |  114367 | 1354014121 | 1358164220 | Image                 |
| 3394 |   1692 |               1697 |              0 |     67325096 |   3828862733 |      3 |        140 |           0 |        24 |  114367 | 1354014126 | 1358164297 | Image                 |
+------+--------+--------------------+----------------+--------------+--------------+--------+------------+-------------+-----------+---------+------------+------------+-----------------------+
3 rows in set (0.01 sec)

I get the expected results...
I do not have any entries in Rails development.log concerning sphinx...
In development.searchd.query.log I have one entry:
Tue Jan 15 14:53:18.559 2013] 0.004 sec [ext2/0/ext 3 (0,20)] [image_core] sphinx

What do you think?

Govinda

govinda....@googlemail.com

unread,
Jan 15, 2013, 9:06:43 AM1/15/13
to thinkin...@googlegroups.com
And for the following line in my index definition

  has status, :type => :integer

the index generation fails:

/workspace/imageserver_xinet thinking_sphinx_edge ✗ ➤ zeus rake ts:generate                                                                                                                                                            [5s] 
Generating index files for image_core
Error with statement: REPLACE INTO image_core (id, sphinx_internal_class_name, file, file_width, file_height, file_colorspace, file_type, file_resolution, file_depth, description, category, tags, campaigns, image_type_name, sphinx_internal_id, sphinx_internal_class, sphinx_deleted, aspect_ratio, chromaticity, origin, image_type, licencetype, client_id, user_id, created_at, updated_at, status) VALUES (2640, 'Image', '/Users/govindafichtner/workspace/imageserver_xinet/uploads/development/original/standortaktiv/client_images/0000/0/1/hier_wird_modernisiert_0000010o.pdf', '867', '442', 'DirectClass sRGB Matte', 'application/pdf', '72', '16', '', 'client_images', '', '', '', 1320, 'Image', 0, 4081532648, 0, 0, 0, 0, 11, 0, 1353509710, 1353509723, 0)
rake aborted!
sphinxql: syntax error, unexpected STATUS, expecting IDENT (or 4 other tokens) near 'status) VALUES (2640, 'Image', '/Users/govindafichtner/workspace/imageserver_xinet/uploads/development/original/standortaktiv/client_images/0000/0/1/hier_wird_modernisiert_0000010o.pdf', '867', '442', 'DirectClass sRGB Matte', 'application/pdf', '72', '16', '', 'client_images', '', '', '', 1320, 'Image', 0, 4081532648, 0, 0, 0, 0, 11, 0, 1353509710, 1353509723, 0)'
-e:1:in `<main>'
Tasks: TOP => ts:generate
(See full trace by running task with --trace)

Pat Allan

unread,
Jan 15, 2013, 6:00:44 PM1/15/13
to thinkin...@googlegroups.com
Can you try the following query directly with Sphinx:

SELECT * FROM image_core WHERE MATCH('sphinx @sphinx_internal_class_name (Image)');

That's closer to what Thinking Sphinx will be sending through.

> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/h_lZ9cIn7J8J.

Pat Allan

unread,
Jan 15, 2013, 6:01:32 PM1/15/13
to thinkin...@googlegroups.com
Ah, I guess status is a keyword with Sphinx. I'll have to put a patch in for that… in the meantime, does it work if you give the attribute a different name?

has status, :as => :image_status, :type => :integer

> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.

> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/F7qxQxuZ31wJ.

govinda....@googlemail.com

unread,
Jan 16, 2013, 2:09:08 AM1/16/13
to thinkin...@googlegroups.com
That's what I get...

mysql> SELECT * FROM image_core WHERE MATCH('sphinx @sphinx_internal_class_name (Image)');
+------+--------+--------------------+----------------+--------------+--------------+--------+------------+-------------+-----------+---------+--------------+------------+------------+-----------------------+
| id   | weight | sphinx_internal_id | sphinx_deleted | aspect_ratio | chromaticity | origin | image_type | licencetype | client_id | user_id | image_status | created_at | updated_at | sphinx_internal_class |
+------+--------+--------------------+----------------+--------------+--------------+--------+------------+-------------+-----------+---------+--------------+------------+------------+-----------------------+
| 3390 |   2482 |               1695 |              0 |   2410462618 |   3828862733 |      3 |        151 |           0 |        24 |  114367 |            1 | 1354014113 | 1358164002 | Image                 |
| 3392 |   2440 |               1696 |              0 |     67325096 |   3828862733 |      3 |        146 |           0 |        24 |  114367 |            1 | 1354014121 | 1358164220 | Image                 |
| 3394 |   2440 |               1697 |              0 |     67325096 |   3828862733 |      3 |        140 |           0 |        24 |  114367 |            1 | 1354014126 | 1358164297 | Image                 |
+------+--------+--------------------+----------------+--------------+--------------+--------+------------+-------------+-----------+---------+--------------+------------+------------+-----------------------+
3 rows in set (0.01 sec)

govinda....@googlemail.com

unread,
Jan 16, 2013, 2:10:03 AM1/16/13
to thinkin...@googlegroups.com
with a different name it works... :-)

govinda....@googlemail.com

unread,
Jan 17, 2013, 2:05:47 AM1/17/13
to thinkin...@googlegroups.com
What I meant with it works is that the generation of the index works... not the search itself...
I get results when I query sphinx directly with qlsql... but still not from thinking_sphinx itself...

Govinda

Pat Allan

unread,
Jan 17, 2013, 8:53:01 AM1/17/13
to thinkin...@googlegroups.com
Hi Govinda

Sorry, I'm not yet sure what the cause of this problem is. If you're performing a search, there should be the SphinxQL statement in your development log - most certainly when accessing via a browser, but I would expect it even via Rails' console. That should could some clues as to what's different with the SphinxQL queries you've been testing directly.

--
Pat

> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/U6pU2wwdBr4J.

Reply all
Reply to author
Forward
0 new messages