Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some products are not getting indexed (MapperParsingException is thrown) #130

Open
jishvi opened this issue Jan 6, 2018 · 0 comments
Open

Comments

@jishvi
Copy link

jishvi commented Jan 6, 2018

I was trying to index some products using the below code
$engine = Mage::helper('catalogsearch')->getEngine();
$engine->getCurrentIndex() ->getMapping('product') ->rebuildIndex(null, $productIds);
This code snippet didn't produce any errors. But the product was not indexed. When I logged the $ret variable in executeBulk() I got this result.

Array( [took] => 6 [errors] => 1 [items] => Array ( [0] => Array ( [index] => Array ( [_index] => localhost-20180105-074301 [_type] => product [_id] => 144581|1 [status] => 400 [error] => MapperParsingException[failed to parse [cable_color]]; nested: NumberFormatException[For input string: "Black"]; ) ) ) )
So I checked eav_attribute table.
image

When changed backend_type from text to varchar I was able to index the product.

  1. Why is this exception not shown in the frontend? I have enabled the debug mode. But I could not find it in the log either.

  2. What could be the possible reason for this exception and why the product was added in elasticsearch after changing the backend-type?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant