elasticsearch-2.0

ElasticSearch (2.2) Java filter between startDate and endDate if exists

半腔热情 提交于 2019-12-19 11:36:01
问题 I want to have following filter with elasticsearch (java client): If startDate exists and lower then now If endDate exists and greater then now I already have following but it doesn't show the once which have no startDate or endDate: //Start date end date BoolQueryBuilder queryBuilder = new BoolQueryBuilder(); queryBuilder.filter(QueryBuilders.rangeQuery("startDate").lte("now")); queryBuilder.should(QueryBuilders.existsQuery("startDate")); queryBuilder.filter(QueryBuilders.rangeQuery("endDate

ElasticSearch 2.0 NEST migration

最后都变了- 提交于 2019-12-13 02:25:27
问题 I have used elastic 1.7 before. After migration to 2.0 I have faced with several issues (here are those I am most focus currently): mapping attributes , json serialization . I have used next attributes I can't find in 2.0 version - ElasticProperty with property Name, Boost, OptOut . I can't find replacement for settitgs.SetJsonSerializerSettingsModifier(x => x.DateParseHandling = DateParseHandling.DateTimeOffset) in new api. The only useful document I found is breaking changes. Sadly, but

mapper_parsing_exception for a custom analyzer while creating index in elasticsearch?

社会主义新天地 提交于 2019-12-12 19:03:41
问题 I create an index named test via a PUT request using: PUT http://localhost:9250/test { "settings": { "analysis": { "char_filter": { "&_to_and": { "type": "mapping", "mappings": ["& => and"] } }, "filter": { "my_stopwords": { "type": "stop", "stopwords": ["the", "a"] } }, "analyzer": { "my_analyzer": { "type": "custom", "char_filter": ["html_strip", "&_to_and"], "tokenizer": "standard", "filter": ["lowercase", "my_stopwords"] }, "folding": { "token_filters": ["lowercase", "asciifolding"],

Homebrew: Can't start elastic search

萝らか妹 提交于 2019-12-11 12:09:46
问题 I'm in a big trouble, I can't start Elasticsearch and I need it for run my rails locally, please tell me what's going on. I installed Elasticsearch in the normal fashion then I did the following: elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml But it shows the following error: [2015-11-01 20:36:50,574][INFO ][bootstrap] es.config is no longer supported. elasticsearch.yml must be placed in the config directory and cannot be renamed. I tried several alternative ways

Elasticsearch : Curl does not work

拥有回忆 提交于 2019-12-11 11:17:25
问题 I have ES 2.2.0 and i am trying curl -XPOST "http://localhost:9200" -d @jnk.json but i get Warning: Couldn't read data from file "jnk.json", this makes an empty POST. No handler found for uri [/] and method [POST] here are the contents of the file jnk.json PUT junktest { "mappings": { "test": {"properties": { "DocumentID": { "type": "string" }, "Tags":{ "type" : "string", "index" : "not_analyzed" }, "Summary": { "type": "string", "index" : "not_analyzed" }, "Status": { "type": "string",

Elasticsearch 2.2 : Cant install marvel plugin

隐身守侯 提交于 2019-12-11 00:43:10
问题 I am trying to install the marvel sense plugin for ES and Kibana on windows. I have ES version 2.2.0 and Kibana version 4.4.0 Here is what i tried to do For ES plugin install license i get -> Installing license... Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugi n/license/2.2.0/license-2.2.0.zip ... ERROR: failed to download out of all possible locations..., use --verbose to get detailed information i also tried plugin install marvel-agent but i get ->

Elasticserch Master not discoverd exception - Version 2.3.0

五迷三道 提交于 2019-12-10 11:17:49
问题 This is the first time I am working with elasticsearch. The following is my environment/configuration. I have 3 EC2 Ubuntu 14.04 instances. I have download and extracted elasticsearch-2.3.0.tar.gz. I have changed elasticsearch.yml file under elasticsearch/config in each of the instance. I have made the following changes in each of the elasticsearch.yml file. 3.1. EC2 Instance number 1 ( my client node) cluster.name: MyCluster node.name: Client node.master: false node.data: false path.data:

IllegalStateException for mixing up field types

喜夏-厌秋 提交于 2019-12-08 01:52:40
问题 My JSON (TMPOI_TEMPLATE) { "addressInfo": { "geopoint": { "lon": 48.845877, "lat": 8.821861, } }, "poiLocation": { "geopoint": { "lon": 48.845877, "lat": 8.821861, }, "speed": 3.0, "date": 1461067375605 }, "_id": "f212949c-7b67-45db-9f76-fe18bf951722" } My Mappings (TMPOI_MAPPING) { "trafficmeasurepoi": { "properties": { "addressInfo": { "properties": { "geopoint": { "type" : "geo_point" }, } }, "poiLocation": { "properties": { "geopoint": { "type" : "geo_point" }, "speed": { "type" : "double

Run elasticsearch with docker

只谈情不闲聊 提交于 2019-12-07 19:07:49
问题 I am new with elasticsearch so pardon me if my question is stupid. I am try to run it with docker. After i pulled elasticsearch image from docker hub, i ran it with command: docker run -p 9200:9200 -p 9300:9300 --name=ES elasticsearch But when i opened http://192.168.99.100:9200 (my docker-machine ip is 192.168.99.100 ) the page is not available. I tried to change my elasticsearch.yml like below: network.publish_host: 192.168.99.100 but it doesn't work. Anyone help me out? Thanks. update 1 I

Run elasticsearch with docker

穿精又带淫゛_ 提交于 2019-12-06 08:53:41
I am new with elasticsearch so pardon me if my question is stupid. I am try to run it with docker. After i pulled elasticsearch image from docker hub, i ran it with command: docker run -p 9200:9200 -p 9300:9300 --name=ES elasticsearch But when i opened http://192.168.99.100:9200 (my docker-machine ip is 192.168.99.100 ) the page is not available. I tried to change my elasticsearch.yml like below: network.publish_host: 192.168.99.100 but it doesn't work. Anyone help me out? Thanks. update 1 I try pass the network.publish_host setting directly on the command line with --network.publish_host=192