Pat, thanks for the answer!

I wil use mysql2 directly.

четверг, 14 июля 2016 г., 7:40:52 UTC+3 пользователь Pat Allan написал:
>
> If you’re not using ActiveRecord models (at least, for the data you want 
> to conduct searches on), then Thinking Sphinx isn’t the right fit. It is 
> built to only work with ActiveRecord.
>
> If you want to use Sphinx’s older binary protocol for searching, then the 
> Riddle gem (which TS uses under the hood) can be used to construct search 
> queries. Or if you’re using the mysql41 protocol and SphinxQL, then I’d 
> recommend just using the mysql2 gem (which, again, is what TS does). I’d 
> recommend the latter - there are features available in SphinxQL that aren’t 
> in the older binary protocol.
>
> If you want to generate your Sphinx configuration programmatically, then 
> again, Riddle can do this too - but perhaps that’s overkill in your 
> scenario?
>
> Happy to go into detail on any of this if needed - but a good starting 
> point for using mysql2 to conduct SphinxQL queries is the TS source code:
>
> https://github.com/pat/thinking-sphinx/blob/develop/lib/thinking_sphinx/connection.rb#L99
>
> Cheers
>
> — 
> Pat
>
> On 14 Jul 2016, at 7:24 AM, Юрий Кудряшов <[email protected] <javascript:>> 
> wrote:
>
> Hi, all.
>
> I've  just started to setup TS and haven't found any information about 
> next steps in my situation.
> I've indexed lot's of data with xmlpipe2 (i don't use any databases, it's 
> just information from lots of files):
>
> mysql> describe my_datas;
> +---------------+--------+
> | Field         | Type   |
> +---------------+--------+
> | id            | bigint |
> | name          | field  |
> | type          | field  |
> | name          | string |
> | is_closed     | uint   |
> | cnt_count | uint   |
> +---------------+--------+
>
> How could i use and setup TS with rails?
> I just want to search information in index and display it to users.
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at https://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to