title: Spring Data Couchbase problems with indexes
body: <p>I'm playing with couchbase and spring data couchbase. For that purposes I have installed couchbase with version <code>5.5.1 build 3511</code> and enabled test buckets. I've created user <code>beer-sample</code> with password <code>beer-sample</code> and added him all privileges to bucket <code>beer-sample</code>.</p>
  
  <p>Then I've created <a href="https://github.com/bilak-poc/couchbase-poc" rel="nofollow noreferrer">this sample application</a> with configuration for couchbase. When I start the application and <a href="https://github.com/bilak-poc/couchbase-poc/blob/master/src/main/java/com/github/bilakpoc/couchbasepoc/BeerSampleApplication.java#L22" rel="nofollow noreferrer">query</a> for existing beers in bucket I'm getting exception:</p>
  
  <pre><code>com.couchbase.client.java.error.ViewDoesNotExistException: View beer/all does not exist.
      at com.couchbase.client.java.view.ViewQueryResponseMapper$BuildViewResult.call(ViewQueryResponseMapper.java:211)
      at com.couchbase.client.java.view.ViewQueryResponseMapper$BuildViewResult.call(ViewQueryResponseMapper.java:185)
      at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:69)
      at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:77)
      at rx.internal.producers.SingleProducer.request(SingleProducer.java:65)
      at rx.Subscriber.setProducer(Subscriber.java:211)
      at rx.internal.operators.OnSubscribeMap$MapSubscriber.setProducer(OnSubscribeMap.java:102)
      at rx.internal.operators.OnSubscribeMap$MapSubscriber.setProducer(OnSubscribeMap.java:102)
      at rx.internal.operators.OperatorSingle$ParentSubscriber.onCompleted(OperatorSingle.java:113)
      at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.checkTerminated(OperatorObserveOn.java:281)
      at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.call(OperatorObserveOn.java:216)
      at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
  Caused by: rx.exceptions.OnErrorThrowable$OnNextValue: OnError while emitting onNext value: com.couchbase.client.java.document.json.JsonObject.class
      at rx.exceptions.OnErrorThrowable.addValueAsLastCause(OnErrorThrowable.java:118)
      at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:73)
      ... 16 more
  </code></pre>
  
  <p>I guess that indexes should be automatically created with my config, but maybe I'm wrong.</p>