jest


Calling CreateIndex with settings without using ImmutableSettings


In the Jest readme there is an example of creating index with settings but it uses the ImmutableSettings class from ElasticSearch library. Unfortunately due to some conflicts, we can't include ElasticSearch library in our project. Is there a way to use CreateIndex.Builder to create index with settings without using ImmutableSettings class from ElasticSearch library?
String settings = "\"settings\" : {\n" +
" \"number_of_shards\" : 5,\n" +
" \"number_of_replicas\" : 1\n" +
" }\n";
client.execute(new CreateIndex.Builder("articles").settings(ImmutableSettings.builder().loadFromSource(settings).build().getAsMap()).build());
Thanks,
Len
See CreateIndexIntegrationTest which has live examples of both (with and without Elasticsearch builders) usage styles and please do read the README which explicitly recommends the integration tests for actual-use examples.

Related Links

Is there a good report for jest test case?
Jest is hung there
Error: Invariant Violation: Element type is invalid
maxTotalConnection and defaultMaxTotalConnectionPerRoute
Calling CreateIndex with settings without using ImmutableSettings

Categories

HOME
memory
verification
mirc
liferay-7
azure-mobile-services
position
angular2-template
sympy
business-intelligence
jquery-file-upload
complexity-theory
closures
gravity
susy-sass
coroutine
bluemix-mobile-services
rxjs5
substring
perfino
restier
spreadsheetgear
sap-lumira
network-analysis
oracleforms
macromedia
memory-fences
shapeless
xerces-c
llvm-ir
windows-store
slideshow
oauth2-playground
cloudera-sentry
transparency
flume-twitter
skip-lists
lvalue
petsc
oracle-fusion-apps
tablespace
livereload
django-testing
always-on-top
qtcpsocket
declarative
fdt
mnesia
ioctl
wikimedia-commons
cryptojs
lowercase
chicagoboss
dsa
gql
sequence-sql
dbmigrate
kotlin-android-extensions
quercus
prism-4
flurry-analytics
rebar
cout
global-scope
osascript
csslint
nodeload
tabletools
spring-social-linkedin
nosql-aggregation
visual-c++-2005
notifyjs
quickgraph
popup-blocker
navigationcontroller
tablet-pc
upshot
directshow.net
grails-validation
gaelyk
suphp
eaccelerator
reliability
rawcontacts
source-code-protection
main-method
inversion
synthesizer

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App