def search( expression )
      out_count = ::FFI::MemoryPointer.new :pointer
      out_list  = ::FFI::MemoryPointer.new :pointer
      out_list  = lib.tcidbsearch2( @db, expression, out_count )

      count = out_count.read_int
      results = out_list.get_array_of_uint64(0, count )
      return results
    end
def search( expression )
      out_count = ::FFI::MemoryPointer.new :pointer
      out_list  = ::FFI::MemoryPointer.new :pointer
      out_list  = lib.tcidbsearch2( @db, expression, out_count )

      count = out_count.read_int
      results = out_list.get_array_of_uint64(0, count )
      return results
    end
Return the document ids of the documents that matche the search expression

 http://tokyocabinet.sourceforge.net/dystopiadoc/#dystopiaapi and scroll
 down to 'Compound Expression of Search'