To edit pages or tickets please login with username/password: aaf/aaf

Show
Ignore:
Timestamp:
02/18/08 20:36:04 (9 months ago)
Author:
jk
Message:

works except of multi and shared indexes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/demo/test/unit/content_test.rb

    r310 r318  
    357357   
    358358  def test_total_hits_multi 
    359     result = Content.total_hits('*:title OR *:comment', :multi => Comment) 
    360     assert_equal 5, result 
     359    q = '*:title OR *:comment' 
     360    assert_equal 3, Comment.total_hits(q) 
     361    assert_equal 2, Content.total_hits(q) 
     362    assert_equal 5, ActsAsFerret::total_hits(q, [ Comment, Content ]) 
    361363  end 
    362364 
     
    476478      remove_index Content 
    477479      i =  ActsAsFerret::MultiIndex.new([Content]) 
    478       assert File.exists?("#{Content.aaf_configuration[:index_dir]}/segments") 
     480      assert File.exists?("#{ActsAsFerret::index_definition(Content)[:index_dir]}/segments") 
    479481      hits = i.search("description:title") 
    480482      assert_equal 1, hits.total_hits, hits.inspect 

To edit pages or tickets please login with username/password: aaf/aaf