title: java-cloudant API, I am facing problems on how to query my cloudant data using the cloudant java api
body: <p>I am using Cloudant Java API.</p>
  
  <p>I have database created and stores doc with following structure :
   <code>{
    "_id": "XXX",
    "_rev": "XX",
    "Place_id": X
  }</code> </p>
  
  <p>I want to query this Database to find place_id > 100.</p>
  
  <p>Currently I have created index and i am using findbyindex as shown below:
  <code>
    String Selector="{\"Place_id\": {\"$gt\": 100}}";
     List&lt;places&gt; p1 = db_use.findByIndex(Selector,places.class);
  </code> 
  Note: db_use is the database, using which I have inserted the records, and also checked them via the _all_docs view.</p>
  
  <p>I am getting the below error:</p>
  
  <pre><code>    org.lightcouch.CouchDbException: Bad Request{"error":"bad_request","reason":"invalid UTF-8 JSON"}   
      at org.lightcouch.CouchDbClientBase.validate(Unknown Source)
      at org.lightcouch.CouchDbClient$3.process(Unknown Source)
      at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:139)
      at [internal classes]
      at org.lightcouch.CouchDbClientBase.executeRequest(Unknown Source)
      at com.cloudant.client.api.CloudantClient.executeRequest(Unknown Source)
      at com.cloudant.client.api.Database.findByIndex(Unknown Source)
  at com.cloudant.client.api.Database.findByIndex(Unknown Source)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
  at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1287)
  at [internal classes]
  </code></pre>
  
  <p>I have followed the api reference from <a href="https://github.com/cloudant/java-cloudant" rel="nofollow">https://github.com/cloudant/java-cloudant</a> but still with the given small examples to call functions did not solved my problems.
  it will be of great help if someone can suggest my mistake or tell me the way to query my database using the java library. Thanks in advance.</p>