{"_id":"5735b73a1f16241700c8a0c7","category":{"_id":"5735a32931a73b1700887c94","version":"5735936aafab441700723a53","__v":0,"project":"5735936aafab441700723a50","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-05-13T09:49:29.176Z","from_sync":false,"order":2,"slug":"quick-start","title":"Stage 2 - Core Import"},"version":{"_id":"5735936aafab441700723a53","__v":12,"project":"5735936aafab441700723a50","createdAt":"2016-05-13T08:42:18.615Z","releaseDate":"2016-05-13T08:42:18.615Z","categories":["5735936aafab441700723a54","5735a32931a73b1700887c94","5735b55beceb872200abbc6c","5735b56eb667601700d3bd6f","5735b9ba4b0ab120000b7dd4","5735b9c94b0ab120000b7dd5","5735cb131f16241700c8a0f7","5735e5c4e4824c3400aa1f21","5735e5d9e4824c3400aa1f23","5735e5f2ec67f6290013ac72","573ecfe0804f901700a9dfc7","573f276c7eeb8b190094ca7d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"","version_clean":"1.0.0","version":"1.0"},"parentDoc":null,"project":"5735936aafab441700723a50","__v":6,"user":"573592b84b0ab120000b7d44","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-13T11:15:06.329Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":8,"body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Search index\",\n  \"body\": \"Ensembl supports a very basic (direct ``MySQL``) search out of the box, this is best replaced with a search plugin so we have made ``index_database.pl`` available to generate an autocomplete/search index compatible with the [lepbase search](https://github.com/lepbase/lepbase-search) plugin.  To use this plugin in your own Ensembl instance you will need to fork the [lepbase search](https://github.com/lepbase/lepbase-search) repository and edit the database connection details, which are hard-coded into the perl scripts in the plugin.\"\n}\n[/block]\n```bash\ncd ~/import\nperl ../ei/core/index_database.pl ../ei/conf/core-import.ini\n```\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Configuration options\"\n}\n[/block]\n- [[META]](doc:meta-core) \n```\n[META]\n    SPECIES.PRODUCTION_NAME = Operophtera_brumata_v1\n```\n  ``SPECIES.PRODUCTION_NAME`` must match the value used during import to the core database.\n\n- [DATABASE_SEARCH](doc:database_search-core)\n```\n[DATABASE_SEARCH]\n\tNAME = lepbase_search_31_84_1\n\tHOST = localhost\n\tPORT = 3306\n\tRW_USER = importer\n\tRW_PASS = importpassword\n\tRO_USER = anonymous\n\tRO_PASS =\n```\n  Connection details for a search database.  Existing entries for the same ``SPECIES.PRODUCTION_NAME`` will be overwritten each time this script is run.","excerpt":"(optional)","slug":"step-28-generate-search-index","type":"basic","title":"Step 2.8: Generate search index"}

Step 2.8: Generate search index

(optional)

[block:callout] { "type": "warning", "title": "Search index", "body": "Ensembl supports a very basic (direct ``MySQL``) search out of the box, this is best replaced with a search plugin so we have made ``index_database.pl`` available to generate an autocomplete/search index compatible with the [lepbase search](https://github.com/lepbase/lepbase-search) plugin. To use this plugin in your own Ensembl instance you will need to fork the [lepbase search](https://github.com/lepbase/lepbase-search) repository and edit the database connection details, which are hard-coded into the perl scripts in the plugin." } [/block] ```bash cd ~/import perl ../ei/core/index_database.pl ../ei/conf/core-import.ini ``` [block:api-header] { "type": "basic", "title": "Configuration options" } [/block] - [[META]](doc:meta-core) ``` [META] SPECIES.PRODUCTION_NAME = Operophtera_brumata_v1 ``` ``SPECIES.PRODUCTION_NAME`` must match the value used during import to the core database. - [DATABASE_SEARCH](doc:database_search-core) ``` [DATABASE_SEARCH] NAME = lepbase_search_31_84_1 HOST = localhost PORT = 3306 RW_USER = importer RW_PASS = importpassword RO_USER = anonymous RO_PASS = ``` Connection details for a search database. Existing entries for the same ``SPECIES.PRODUCTION_NAME`` will be overwritten each time this script is run.