Skip to content

<div style="display: none;" hidden="true" aria-hidden="true">Are you an LLM? You can read better optimized documentation at /guides/solr/configuring_adveshop4/creating_the_schema_from_cli.md for this page in Markdown format</div>

Creating the schema from CLI

Now that you've successfully created a core in your solr server, and configured adveshop4 to connect to solr, it is time to modify the default schema of your newly created core, to a format that adveshop4 understands.

To achieve this, adveshop4 comes with a CLI command that automatically creates the schema for you. Here are the steps for the schema creation:

  • Navigate to your adveshop4 root directory
  • Do php cli.php createSolrSchema
  • If the console outputs Ok that means the schema was modified successfully
  • Adveshop4 is now ready to use Solr!