# Integrating Rdig and acts\_as\_ferret

**URL:** <https://www.ruby-forum.com/t/integrating-rdig-and-acts-as-ferret/84160>\
**Category:** Ruby\
**Created:** [February 1, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/integrating-rdig-and-acts-as-ferret/84160 "2007-02-01T22:30:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bira](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c89c15/32.png) [@Bira](https://www.ruby-forum.com/u/Bira)\
**Post date:** [February 1, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/integrating-rdig-and-acts-as-ferret/84160/1 "2007-02-01T22:30:17Z")

</div>

Hello to the nice people of ruby-talk :). I have a question that  
involves Rails, but I believe it has enough “pure Ruby” in it to be  
worth asking here. If I’m wrong about that, please say so.

Is it possible to use both Rdig and acts\_as\_ferret to build and search  
the same index? I got them to write to the same index, but a search  
with Rdig’s API for something that was added by the other indexer  
returns a bunch of empty results. My guess is the other indexer isn’t  
writting the correct fields to the index. Does anyone have any idea of  
how to integrate the two?

I Googled around for an answer to this, in addition to doing my own  
investigations, but I couldn’t find anything.

---

<div class="post-metadata">

**Author:** ![Bira](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c89c15/32.png) [@Bira](https://www.ruby-forum.com/u/Bira)\
**Post date:** [February 2, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/integrating-rdig-and-acts-as-ferret/84160/2 "2007-02-02T12:06:18Z")

</div>

On 2/1/07, Bira [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is it possible to use both Rdig and acts\_as\_ferret to build and search  
> the same index?

Answerring my own question, I managed to get them to work together by  
making two separate searches on the background, one on each index, and  
presenting them to the user as if it was a single unified search.
