What's the define_index block looking like? I assume it's in Account,
and that's the superclass? Do you have any indexes on subclasses?
--
Pat
On 29/09/2009, at 8:48 PM, aitrus wrote:
>
> So, when I run a search query in my Controller--for one specific STI
> class--Thinking Sphinx tells it that it's nil.
>
> When I run the same query in my rails console, it returns the correct
> records.
>
> To quote Linkin Park: Im'ma bout to break.
>
>
>
> Actually, I just took down the Sphinx Daemon and TS just returns an
> empty array in the Prod run.
>
> Also, does TS have any debug logger calls? Because it doesn't seem to
> at all, when I run things in debug mode. Makes it really hard to see
> where this is happening.
>
>
> Query:
> @results = Account.search :conditions => {:account_type=>"-InAccount
> -LocalAccount ", :account_name=>"*CJAY*"},
> :group_function => :attr,
> :group_by => "sort_account_name",
> :match_mode => :extended,
> :per_page => 50,
> :page =>
>
> In production, this returns "[nil]"
>
> In development, this returns "[#<PoisAccount id: 110731, name: "CJAY",
> sam_name: "C0631", install_data: "", account_data: "", id_number: 1,
> default_group: "", owner: "", revoke: "", is_login: "", is_rlogin: "",
> is_su: nil, host: nil, created_on: "2009-09-28 21:45:25",
> last_login_on: nil, last_update_on: nil, last_login_at: nil,
> password_changed_on: nil, password_interval: nil, revoked_on: nil,
> resumed_on: nil, password_type: nil, account_attributes: nil, special:
> nil, operations: nil, auditor: nil, update_tracker: 1, type:
> "PoisAccount", created_at: "2009-09-28 21:45:25", updated_at:
> "2009-09-28 21:45:25", revisable_original_id: nil,
> revisable_branched_from_id: nil, revisable_number: 0, revisable_name:
> nil, revisable_type: nil, revisable_current_at: nil,
> revisable_revised_at: nil, revisable_deleted_at: nil,
> revisable_is_current: true>]"
>
>
> Why would this be the case? I tried disabling all of the cacheing in
> production, because that was the root of another TS problem. It's
> just..... frustrating. Anything?
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---