I have a ton of items I imported via REST API. They don't show up in search. For this test I'm just using the LIKE operator. Magento 1.8
What works:
- Manually edit a single product
- Set qty=1 and is_in_stock to yes/1
- If prompted, redo search index
The problem is this doesn't scale; I have tens of thousands of products.
What doesn't work, attempt 1:
- System -> Configuration -> Catalog / Inventory -> Stock Options
- Display Out of Stock Products = Yes
- Redo search index (all indexes, just to be safe)
This is the purported fix that I found on Google a while back, but annoyingly doesn't work.
What doesn't work, attempt 2:
- Run SQL command:
UPDATE magento.cataloginventory_stock_item SET qty = 1, is_in_stock = 1;
- Redo search index (all indexes, just to be safe)
I know you're not supposed to do this, but this is a dev system and I wanted to try.
Use REST API?
- I believe I tried this some time back and it didn't work.
- Even if it did work, it'd be too slow. We're moving away from the REST API because it takes days / weeks to complete for a large data-set.
Questions:
When I manually edit a product and set qty=1 / in-stock=yes, it's clearly doing something "special", above and beyond tweaking the
cataloginventory_stock_item
table. What else is it doing?Is there some way to simulate whatever that is?
What the heck is the point of the "Display Out of Stock Products = Yes" option if it doesn't affect search?
Magento seems to do a lot of internal filtering... I'm guessing that something in my data doesn't quite match.