# Full text search with complicated conditions

**URL:** <https://www.ruby-forum.com/t/full-text-search-with-complicated-conditions/154114>\
**Category:** Rails\
**Created:** [November 25, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/full-text-search-with-complicated-conditions/154114 "2008-11-25T15:28:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hubert\_SSSSSSSSSpic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/73ab20/32.png) [@Hubert\_SSSSSSSSSpic](https://www.ruby-forum.com/u/Hubert_SSSSSSSSSpic)\
**Post date:** [November 25, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/full-text-search-with-complicated-conditions/154114/1 "2008-11-25T15:28:39Z")

</div>

Hi all,

I am going to do full text search, but only on records that match  
quite complicated conditions. I have implemented these as custom  
named\_scopes, with some SQL. Does anyone know if I can use these named  
scopes in filtering out results returned for example by Sphinx? I have  
looked at ThinkingSphinx, but it allows you to specify only simple  
conditions conditions and does know nothing about ActiveRecord  
associations. Is there any other tool more aware of AR than Sphinx?

Best,  
H.
