On Feb 6, 12:23 am, Pat Allan <[email protected]> wrote:
> Okay, if it's not working in script/console, then we've got a  
> different problem.
>
> Can you run rake ts:in, then in script/console, create a new instance  
> and try the following (assuming production, and change model_name to  
> your model name lowercase and underscored):
>
> client = Riddle::Client.new "localhost", 11002
> client.query "", "model_name_delta"
>
> I've not used jruby, so no idea if that has an effect, but I'm sure  
> someone else on this list is in the same environment?
>
> Cheers
>
> --
> Pat
>


A special thanks for your help while you were on vacation. Sorry for
being a bit frustrated. I appreciate you sticking it out with me.


Here is the result.

>> client = Riddle::Client.new "localhost", 11002
=> #<Riddle::Client:0x5a372f43 @group_distinct="", @filters=[],
@weights=[], @limit=20, @retry_count=0, @field_weights={}, @anchor={},
@cut_off=0, @group_clause="@group desc", @retry_delay=0,
@sort_mode=:relevance, @timeout=0, @max_query_time=0,
@match_mode=:all, @id_range=0..0, @group_function=:day, @sort_by="",
@max_matches=1000, @group_by="", @rank_mode=:proximity_bm25,
@offset=0, @queue=[], @index_weights={}, @server="localhost",
@port=11002>
>> client.query "", "expense_delta"
=> {:matches=>[], :fields=>["amount", "title", "check_number",
"notes", "business_id", "client_name", "payee_name", "employee_name",
"contractor_name", "expense_category_name"], :attributes=>
{"sphinx_internal_id"=>1, "class_crc"=>1, "subclass_crcs"=>1073741825,
"sphinx_deleted"=>1}, :attribute_names=>["sphinx_internal_id",
"class_crc", "subclass_crcs", "sphinx_deleted"], :words=>
{}, :status=>0, :total=>0, :total_found=>0, :time=>0.0}
>> e = Expense.new :amount=>1, :creator_id=>1, :business_id=>1
=> #<Expense id: nil, amount: #<BigDecimal:9e12aac,'1.0',1(4)>,
bank_account_id: nil, title: nil, date: nil, check_number: nil,
created_at: nil, creator_id: 1, updated_at: nil, updater_id: nil,
notes: nil, business_id: 1, expense_category_id: nil, contractor_id:
nil, employee_id: nil, paid_date: nil, is_paid: nil, transfer_fund_id:
nil, payee_id: nil, due_date: nil, client_id: nil, repeater_id: nil,
repeated_template: false, bank_statement_id: nil, template_name: nil,
delta: false, regex_title: nil>
>> e.due_date = Date.today
=> Wed, 11 Feb 2009
>> e.save
=> true
>> client.query "", "expense_delta"
=> {:matches=>[], :fields=>["amount", "title", "check_number",
"notes", "business_id", "client_name", "payee_name", "employee_name",
"contractor_name", "expense_category_name"], :attributes=>
{"sphinx_internal_id"=>1, "class_crc"=>1, "subclass_crcs"=>1073741825,
"sphinx_deleted"=>1}, :attribute_names=>["sphinx_internal_id",
"class_crc", "subclass_crcs", "sphinx_deleted"], :words=>
{}, :status=>0, :total=>0, :total_found=>0, :time=>0.0}

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to