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
events
angular-ui-grid
enums
android-emulator
celery
lvm
amp
tibco
video-streaming
angular-meteor
cdi
scheduler
responsive-design
sharepoint-online
msmq
erd
game-maker
pushdown-automaton
multiple-tables
mod-wsgi
password-generator
strophe.js
dnsmasq
xenapp
subclassing
cargo
djcelery
fastlane
fluid-mac-app-engine
roracle
karabiner
entropy
palindrome
nrf51
ipywidgets
multi-touch
xmlbeans
clp
nsrunloop
dmarc
pyaudio
callouts
traversable
coovachilli
cdo.message
android-4.2-jelly-bean
wicked-pdf
wepay
lovefield
phpquery
srv-record
auto-generate
darwin
alwayson
org-babel
kefir.js
ssmtp
html-escape-characters
findersync
jcheckbox
cakephp-2.2
qt5.4
igor
loginview
webautomation
meteor-collections
air-native-extension
jomsocial
ctp
saga
yii-booster
ax
jquery-lazyload
simplecov
user-forums
multiple-dispatch
struts2-json-plugin
server-name
uipangesturerecognizer
prototypal-inheritance
n-queens
yuidoc
photo-management
css-friendly
nsconnection
downgrade
odac
urchin
asdoc
rational-unified-process
yahoo-maps
rawcontacts
subtext
rakudo
html-generation

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App