{"__v":8,"_id":"5764657a2ccec80e00dc93ae","category":{"__v":0,"_id":"57698fa2e93bfd190028815c","project":"56be3387be55991700c3ca0d","version":"56be3388be55991700c3ca10","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-06-21T19:04:02.961Z","from_sync":false,"order":1,"slug":"integrations","title":"Guides"},"parentDoc":null,"project":"56be3387be55991700c3ca0d","user":"5633ec9b35355017003ca3f2","version":{"__v":8,"_id":"56be3388be55991700c3ca10","project":"56be3387be55991700c3ca0d","createdAt":"2016-02-12T19:33:28.313Z","releaseDate":"2016-02-12T19:33:28.313Z","categories":["56be3389be55991700c3ca11","57646709b0a8be1900fcd0d8","5764671c89da831700590782","57646d30c176520e00ea8fe5","5764715d4f867c0e002bc8e3","57698fa2e93bfd190028815c","576c2af16c24681700c902da","5787da96b008c91900aae865"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-17T21:02:50.798Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Getting up and running with Engineyard\"\n}\n[/block]\nFirst, you will want to choose a Solr client. We recommend [Sunspot](https://github.com/sunspot/sunspot). Check out our Sunspot Quick Start to get up and running in your development environment.\n\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Deploying to production\"\n}\n[/block]\n## 1. Sign up for Websolr at http://websolr.com/plans\n\nNew customers hosting on Engine Yard may use the coupon code ENGINEYARD during signup to receive your first month for free. (Up to $100.)\n\n## 2. Create an index\n\nChoose a client configuration -- we recommend the latest Sunspot.\n\n## 3. Configure your client\n\nConfigure your Solr client to use the URL for your index (http://index.websolr.com/solr/0a1b2c3d4e…).\n\nSunspot natively supports the WEBSOLR_URL environment variable. You may also choose to create a `config/sunspot.yml file` like the following, using the values for your newly-created index:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"production:\\n  solr:\\n    hostname: index.websolr.com\\n    port: 80\\n    path: '/solr/a0b1c2d3e'\\n    log_level: WARNING\\n\\ndevelopment:\\n  solr:\\n    hostname: localhost\\n    port: 8982\\n    log_level: INFO\\n\\ntest:\\n  solr:\\n    hostname: localhost\\n    port: 8981\\n    log_level: WARNING\",\n      \"language\": \"yaml\"\n    }\n  ]\n}\n[/block]\n\n## Release & reindex your data\n\nImmediately after releasing your changes, you need to reindex your data for your search to work. Sunspot provides the `sunspot:reindex` task, which you may run from the command line, or as part of a deploy:long task in your Capistrano deploy file.\n\n```\n$ rake sunspot:reindex\n```\n\nYou're done! At this point, your new full-text search should be up and running.","excerpt":"How to get up and running with Engineyard and Solr.","slug":"engineyard","type":"basic","title":"Engineyard"}

Engineyard

How to get up and running with Engineyard and Solr.

[block:api-header] { "type": "basic", "title": "Getting up and running with Engineyard" } [/block] First, you will want to choose a Solr client. We recommend [Sunspot](https://github.com/sunspot/sunspot). Check out our Sunspot Quick Start to get up and running in your development environment. [block:api-header] { "type": "basic", "title": "Deploying to production" } [/block] ## 1. Sign up for Websolr at http://websolr.com/plans New customers hosting on Engine Yard may use the coupon code ENGINEYARD during signup to receive your first month for free. (Up to $100.) ## 2. Create an index Choose a client configuration -- we recommend the latest Sunspot. ## 3. Configure your client Configure your Solr client to use the URL for your index (http://index.websolr.com/solr/0a1b2c3d4e…). Sunspot natively supports the WEBSOLR_URL environment variable. You may also choose to create a `config/sunspot.yml file` like the following, using the values for your newly-created index: [block:code] { "codes": [ { "code": "production:\n solr:\n hostname: index.websolr.com\n port: 80\n path: '/solr/a0b1c2d3e'\n log_level: WARNING\n\ndevelopment:\n solr:\n hostname: localhost\n port: 8982\n log_level: INFO\n\ntest:\n solr:\n hostname: localhost\n port: 8981\n log_level: WARNING", "language": "yaml" } ] } [/block] ## Release & reindex your data Immediately after releasing your changes, you need to reindex your data for your search to work. Sunspot provides the `sunspot:reindex` task, which you may run from the command line, or as part of a deploy:long task in your Capistrano deploy file. ``` $ rake sunspot:reindex ``` You're done! At this point, your new full-text search should be up and running.