Skip to content

Commit

Permalink
Add node filtering info to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bdharrington7 committed May 23, 2016
1 parent c68bdb6 commit c076be6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,18 @@ ClientConfig clientConfig = new ClientConfig.Builder("http://localhost:9200")
.build();
```

Setting a filter on the nodes to discover will allow you specify they types of nodes to discover,
with the same syntax as outlined in [Node Specification](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html#cluster-nodes) for Elasticsearch.
For example:
```java
//enable host discovery
ClientConfig clientConfig = new ClientConfig.Builder("http://localhost:9200")
.discoveryEnabled(true)
.discoveryFrequency(1l, TimeUnit.MINUTES)
.discoveryFilter("type:arbitrary")
.build();
```

### Authentication

Basic username and password authentication can be configured when constructing the client; it should be noted that
Expand Down

0 comments on commit c076be6

Please sign in to comment.