Yes Pat it works! Thanks
But I have the same issue with two indices on one model (with the same
reference):
core_index = config.indices.select{|idx|idx.reference ==
delta_index.reference && idx.delta? == false}.first
i just changed:
core_index_name = delta_index.name.gsub(/delta/, 'core')
core_index = config.indices.select{|idx|idx.name == core_index_name
&& idx.delta? == false}.first
среда, 26 марта 2014 г., 14:37:12 UTC+4 пользователь Pat Allan написал:
>
> Looks like the patch I accepted wasn’t quite ready for Postgres. I’ve just
> pushed a commit that should fix things - care to give it a shot?
>
> On 26 Mar 2014, at 6:58 pm, Kirill Moiseev <[email protected]<javascript:>>
> wrote:
>
> Pat as I understand ts-datetime-delta isn't ready for thinking-sphinx 3.1
> + postgres?
>
>
>
> понедельник, 24 марта 2014 г., 18:02:41 UTC+4 пользователь Kirill Moiseev
> написал:
>>
>> Thanks. It works!
>>
>> But now I have another problem.
>>
>> I have 2 indices for one model:
>> https://gist.github.com/benone/f4315786aeb97ea597f9
>> When I run rake:ts:delta i got this errors:
>> https://gist.github.com/benone/2627ebc37ef01dc0fa30
>>
>> I'll try to fix postgres sql snippet. As I understand, gem generate
>> mysql-style code.
>>
>> But I can't understand why my second delta (admin_delta) merging to first
>> core (user_core).
>>
>>
>> понедельник, 24 марта 2014 г., 16:53:15 UTC+4 пользователь Pat Allan
>> написал:
>>>
>>> Hi Kirill
>>>
>>> Did you try the latest in the master branch? I’ve merged in a pull
>>> request that should add TS v3 support.
>>>
>>> If not, can you provide the full stack trace?
>>>
>>> Cheers
>>>
>>> —
>>> Pat
>>>
>>> On 24 Mar 2014, at 7:05 pm, Kirill Moiseev <[email protected]> wrote:
>>>
>>> Hi Pat.
>>>
>>> Could you please tell how can i use datetime delta for TS3?
>>>
>>> I tried https://github.com/pat/ts-datetime-delta but it doesn't work
>>> (undefined method context for ThinkingSphinx on datetime_delta.rb#15).
>>>
>>>
>>> P.S.
>>> Thanks a lot for your gem. It's really great, customizable and easy to
>>> use.
>>>
>>> --
>>> 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 http://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] <javascript:>.
> To post to this group, send email to [email protected]<javascript:>
> .
> Visit this group at http://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 http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.