Could you run us through how you're testing the deltas in the command line? It's worth noting that Sphinx takes a second to load the new data, so don't run a search *straight* after creating a new object - I usually use `sleep 0.5` in my tests to account for this.
Also, can you provide the full define_index block?
Cheers
--
Pat
> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
>
Can you show us what data you're using in the new record, and what your test search query is?
--
Pat
What happens if you run - from the command line - a manual search:
search --config config/development.sphinx.conf -i hardware_delta dell
Does it get returned?
--
Pat
--
Pat
On a *nix box the shell I'm talking about would be bash, zsh, etc. On Windows, I guess it's cmd.exe?
gw:WTL2 gwt$ search --config config/development.sphinx.conf -i product_delta topSphinx 2.0.4-release (r3135)Copyright (c) 2001-2012, Andrew AksyonoffCopyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)using config file 'config/development.sphinx.conf'...index 'product_delta': search error: .
Product Load (1.3ms) SELECT `products`.* FROM `products` WHERE (guid = 'BLFA1176M1851' AND feed_id = 1) LIMIT 1Brand Load (0.4ms) SELECT `brands`.* FROM `brands` WHERE `brands`.`name` = 'Bench' LIMIT 1(0.1ms) BEGINSQL (0.6ms) INSERT INTO `products` (`data omitted')Feed Load (0.5ms) SELECT `feeds`.* FROM `feeds` WHERE `feeds`.`id` = 1 LIMIT 1Category Load (0.2ms) SELECT `categories`.* FROM `categories` WHERE `categories`.`id` IS NULL LIMIT 1Subcategory Load (0.2ms) SELECT `subcategories`.* FROM `subcategories` WHERE `subcategories`.`id` IS NULL LIMIT 1(0.4ms) COMMITSphinx 2.0.4-release (r3135)Copyright (c) 2001-2012, Andrew AksyonoffCopyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)using config file '/Users/geoffwright/Documents/rails/WTL2/config/development.sphinx.conf'...indexing index 'product_delta'...collected 0 docs, 0.0 MBcollected 0 attr valuessorted 0.0 Mvalues, 100.0% donetotal 0 docs, 0 bytestotal 0.014 sec, 0 bytes/sec, 0.00 docs/sectotal 5 reads, 0.000 sec, 25.5 kb/call avg, 0.0 msec/call avgtotal 5 writes, 0.000 sec, 0.2 kb/call avg, 0.0 msec/call avgrotating indices: succesfully sent SIGHUP to searchd (pid=1488).Sphinx Query (2.1ms)Sphinx Found 0 results
You omitted the data for the new product - can you confirm that the delta flag was set to true there? Also, what version of Thinking Sphinx are you using?
Cheers
--
Pat
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/yQzDyqDPR3cJ.
Product Load (0.8ms) SELECT `products`.* FROM `products` WHERE (guid = '1411077050' AND feed_id = 2) LIMIT 1Brand Load (0.6ms) SELECT `brands`.* FROM `brands` WHERE `brands`.`name` = 'Schuh' LIMIT 1(0.1ms) BEGINSQL (2.5ms) INSERT INTO `products` (`additional_data_1`, `additional_data_2`, `additional_data_3`, `brand`, `category_id`, `colour_id`, `cost_id`, `created_at`, `dead`, `deeplink`, `delta`, `description`, `feed_id`, `feed_log_id`, `gender_id`, `get_photo_status`, `guid`, `image`, `image_attempts`, `is_duplicate`, `last_checked`, `merchant_link`, `name`, `old_prices`, `parent_id`, `pattern_id`, `permalink`, `photo_content_type`, `photo_file_name`, `photo_file_sze`, `photo_updated_at`, `photograph_id`, `price`, `processed`, `rank`, `sale`, `sale_on`, `subcategory_id`, `tags`, `updated_at`) VALUES ('Womens Footwear', 'Women\'s Footwear', NULL, 'Schuh', NULL, NULL, NULL, '2013-01-02 14:17:08', 0, 'http://www.awin1.com/pclick.php?p=696651025&a=93579&m=2044', 1, 'Youll get more attention showing these off than sticking your thumb out! The Hitch Hike is one of our own and features a black suede upper and two functional buckles. This tough little ankle boot sits on a 6cm heel and a cleated sole.', 2, 13125, NULL, NULL, '1411077050', 'http://www.schuh.co.uk/images/product/141107/1411077050_exlg.jpg', NULL, NULL, NULL, 'http://www.schuh.co.uk/womens-black-schuh-hitch-hike/1411077050/', 'Schuh Hitch Hike', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '85.00', NULL, NULL, 0, NULL, NULL, NULL, '2013-01-02 14:17:08')Feed Load (1.0ms) SELECT `feeds`.* FROM `feeds` WHERE `feeds`.`id` = 2 LIMIT 1Category Load (0.5ms) SELECT `categories`.* FROM `categories` WHERE `categories`.`id` IS NULL LIMIT 1Subcategory Load (0.5ms) SELECT `subcategories`.* FROM `subcategories` WHERE `subcategories`.`id` IS NULL LIMIT 1(2.4ms) COMMITSphinx 2.0.6-release (r3473)
Copyright (c) 2001-2012, Andrew AksyonoffCopyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/Users/geoffmwright/Documents/rails/WTL2/config/development.sphinx.conf'...WARNING: no such index 'product_delta', skipping.total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avgtotal 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avgSphinx Query (3.9ms)Sphinx Found 0 results
This is different in the Sphinx output - but I guess you may have disabled deltas at some point in the meantime?
> WARNING: no such index 'product_delta', skipping.
Run ts:rebuild and give it another spin, just to confirm.
--
Pat
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/eGZsYthFdacJ.
Sounds like you're doing everything right. Can you add your Sphinx configuration file to that gist - though you should remove any database usernames and passwords from the sources.
--
Pat
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/IVzzLxsn6aYJ.
I think I've found the culprit - you've got additional WHERE clauses in your index definition of dead IS NULL and image_attempts = 1, yet neither of those are true in the SQL INSERT when the product is created. That'd be why the indexer isn't picking up your new records. Best to either remove those conditions, or ensure the expected values are covered by them.
Cheers
--
Pat
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/cxGroG3ceWEJ.