Sphinx Thinking - Delta Indexing Doesn't Work

In my application, I need each new record to be added to the index instantly (not after rake ts: index). If I understand this correctly, then delta indexing is what I'm looking for. So, I added a column deltato every table that I index using Sphinx, set a default value falseand added set_property :delta => trueto each block define_index; then ran rake ts: index and rake ts: restart. However, "instant" indexing does not work. When testing on the console, I create a new record, save it and try to search, but I won’t return it (after running rake ts: index it works fine). Am I something wrong here?

+5
source share
4 answers

Thank you for your efforts. After quite a bit of research, it turned out that I just forgot to start the migration (which set the default value for delta columns to false). Now I have to get negative points for such a stupid mistake. Sorry to bother you and thanks again.

+6
source

-, ... , . , , delta . sphinx doc http://freelancing-god.github.com/ts/en/deltas.html , :

def self.up
  add_column :articles, :delta, :boolean, :default => true,
    :null => false
end

- ?

!

+2

Rails ? - script/console?

0

rake ts: conf ?

, , SQL- ( ).

.

0

All Articles