This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.mapdb; | |
import static org.junit.Assert.assertEquals; | |
import java.io.DataInput; | |
import java.io.DataOutput; | |
import java.io.IOException; | |
import java.io.Serializable; | |
import java.nio.file.Files; | |
import java.nio.file.Path; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.demandware.elasticsearch.regression; | |
import static org.elasticsearch.index.query.QueryBuilders.matchQuery; | |
import static org.elasticsearch.index.query.QueryBuilders.termQuery; | |
import static org.elasticsearch.node.NodeBuilder.nodeBuilder; | |
import static org.junit.Assert.assertEquals; | |
import java.nio.charset.Charset; | |
import org.elasticsearch.action.search.SearchResponse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XDELETE 'http://localhost:9200/test/' | |
curl -XPUT 'http://localhost:9200/test/' | |
curl -XPUT 'http://localhost:9200/test/test/1' -d ' | |
{ | |
"doc":{ | |
"string" : "foo" | |
} | |
} | |
' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XPUT 'http://localhost:9200/test/' | |
# index document without double value | |
curl -XPUT 'http://localhost:9200/test/test/1' -d ' | |
{ | |
"doc":{ | |
} | |
} | |
' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package itembedded.search.search; | |
import static org.elasticsearch.index.query.xcontent.QueryBuilders.termQuery; | |
import junit.framework.Assert; | |
import org.elasticsearch.action.search.SearchResponse; | |
import org.elasticsearch.client.Client; | |
import org.elasticsearch.client.transport.TransportClient; | |
import org.elasticsearch.common.transport.InetSocketTransportAddress; | |
import org.elasticsearch.search.SearchHits; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -XPUT 'http://localhost:9200/twitter/' | |
$ curl -XPUT 'http://localhost:9200/twitter/tweet/_mapping' -d ' | |
{ | |
"tweet" : { | |
"dynamic_templates" : [ { | |
"template1" : { | |
"match" : "*", | |
"match_mapping_type" : "string", | |
"mapping" : { |