title: Magento reindexes is not working - magento2
body: <p>I am doing reindex of all the product using </p>
  
  <pre><code>php bin/magento indexer:reindex
  </code></pre>
  
  <p>but when i run this command first time through me error like : </p>
  
  <pre><code>    PHP Fatal error:  Maximum function nesting level of '256' reached, aborting! in /var/www/html/solen_magento/vendor/magento/framework/Config/Scope.php on line 48
  PHP Stack trace:
  PHP   1. {main}() /var/www/html/solen_magento/bin/magento:0
  PHP   2. Symfony\Component\Console\Application-&gt;run() /var/www/html/solen_magento/bin/magento:25
  PHP   3. Magento\Framework\Console\Cli-&gt;doRun() /var/www/html/solen_magento/vendor/symfony/console/Symfony/Component/Console/Application.php:126
  PHP   4. Symfony\Component\Console\Application-&gt;doRun() /var/www/html/solen_magento/vendor/magento/framework/Console/Cli.php:49
  PHP   5. Symfony\Component\Console\Application-&gt;doRunCommand() /var/www/html/solen_magento/vendor/symfony/console/Symfony/Component/Console/Application.php:195
  PHP   6. Symfony\Component\Console\Command\Command-&gt;run() /var/www/html/solen_magento/vendor/symfony/console/Symfony/Component/Console/Application.php:874
  PHP   7. Magento\Indexer\Console\Command\IndexerReindexCommand-&gt;execute() /var/www/html/solen_magento/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
  PHP   8. Magento\Indexer\Model\Indexer-&gt;reindexAll() /var/www/html/solen_magento/vendor/magento/module-indexer/Console/Command/IndexerReindexCommand.php:38
  PHP   9. Magento\CatalogSearch\Model\Indexer\Fulltext-&gt;executeFull() /var/www/html/solen_magento/vendor/magento/module-indexer/Model/Indexer.php:412
  PHP  10. Magento\CatalogSearch\Model\Indexer\IndexerHandler-&gt;saveIndex() /var/www/html/solen_magento/vendor/magento/module-catalog-search/Model/Indexer/Fulltext.php:111
  PHP  11. Magento\Framework\Indexer\SaveHandler\Batch-&gt;getItems() /var/www/html/solen_magento/vendor/magento/module-catalog-search/Model/Indexer/IndexerHandler.php:94
  PHP  12. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\IndexIterator-&gt;rewind() /var/www/html/solen_magento/vendor/magento/module-catalog-search/Model/Indexer/IndexerHandler.php:23
  PHP  13. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\IndexIterator-&gt;next() /var/www/html/solen_magento/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/IndexIterator.php:264
  
  .
  .
  .
  .
  PHP 251. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\IndexIterator-&gt;next() /var/www/html/solen_magento/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/IndexIterator.php:204
  PHP 252. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\IndexIterator-&gt;next() /var/www/html/solen_magento/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/IndexIterator.php:204
  PHP 253. Magento\CatalogSearch\Model\Indexer\Fulltext\Action\IndexIterator-&gt;next() /var/www/html/solen_magento/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/IndexIterator.php:204
  PHP 254. Magento\Catalog\Model\ResourceModel\Eav\Attribute\Interceptor-&gt;getId() /var/www/html/solen_magento/vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/IndexIterator.php:195
  PHP 255. Magento\Framework\Interception\PluginList\PluginList-&gt;getNext() /var/www/html/solen_magento/var/generation/Magento/Catalog/Model/ResourceModel/Eav/Attribute/Interceptor.php:1712
  PHP 256. Magento\Framework\Interception\PluginList\PluginList-&gt;_loadScopedData() /var/www/html/solen_magento/vendor/magento/framework/Interception/PluginList/PluginList.php:249
  </code></pre>
  
  <p>But when i run this command second time its successfully run and output like : </p>
  
  <pre><code>Customer Grid index has been rebuilt successfully in 00:00:00
  Category Products index has been rebuilt successfully in 00:00:02
  Product Categories index has been rebuilt successfully in 00:00:01
  Product Price index has been rebuilt successfully in 00:00:02
  Product EAV index has been rebuilt successfully in 00:00:01
  Catalog Rule Product index has been rebuilt successfully in 00:00:00
  Catalog Product Rule index has been rebuilt successfully in 00:00:00
  Catalog Search index has been rebuilt successfully in 00:00:00
  Stock index has been rebuilt successfully in 00:00:00
  </code></pre>
  
  <p>So based on this index is done successfully, but when i tries to search a product in magneto then its not showing in searching result.</p>
  
  <p>So i flushed all the cache from the admin panel.
  then remove all the files from <code>var</code> dir
  generate all the static files again using </p>
  
  <pre><code>php bin/magento setup:static-content:deploy en_US fr_FR
  </code></pre>
  
  <p>But still its not working.</p>
  
  <p>But when i edit any products from the backed and then i tries to search then its working.</p>
  
  <p>So can any one help me for this?</p>
  
  <p>Thanks in advance.</p>