Guest User

Untitled

a guest
Oct 21st, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. > rake index
  2. Builds indexes nicely for everything.
  3.  
  4.  
  5. > rake index:specific[users,first_name]
  6. Messes up the index number(the 'format :to_s' is ignored, string '4d234235F4252' is just a 4 in the file), but reads from the database :)
  7. So, keys are refreshed, but values are messed up.
  8.  
  9. > Indexes.find(:users, :first_name).index!
  10. "12:18:44: "first_name": Starting parallel indexing." # log entry
  11. Doesn't reindex the data.
  12.  
  13.  
  14. > Indexes.find(:users, :first_name).cache!
  15. # log entries
  16. 12:22:30: "users:first_name:exact": Loading index.
  17. 12:22:30: "users:first_name:exact": Caching from intermediate in-memory index.
  18. 12:22:30: "users:first_name:partial": Generating partial index for index.
  19. 12:22:30: "users:first_name:partial": Caching from intermediate in-memory index.
  20. 12:22:30: "users:first_name:exact": Dumping index.
  21. 12:22:30: "users:first_name:exact": Dumping similarity of index.
  22. 12:22:30: "users:first_name:exact": Dumping weights of index.
  23. 12:22:30: "users:first_name:exact": Dumping configuration for index.
  24. 12:22:30: "users:first_name:partial": Dumping index.
  25. 12:22:30: "users:first_name:partial": Dumping similarity of index.
  26. 12:22:30: "users:first_name:partial": Dumping weights of index.
  27. 12:22:30: "users:first_name:partial": Dumping configuration for index.
  28. 12:22:30: "users:first_name": Caching finished.
  29.  
  30. Reindexes and loads the data into the cache for a single category.
  31. Working as intended.
Add Comment
Please, Sign In to add comment