목록DB/[Elasticsearch] (57)
른록노트
Combining FilterseditThe previous two examples showed a single filter in use. In practice, you will probably need to filter on multiple values or fields. For example, how would you express this SQL in Elasticsearch?SELECT product FROM products WHERE (price = 20 OR productID = "XHDK-A-1293-#fJ3") AND (price != 30)In these situations, you will need to use a bool query inside the constant_score que..
POST test/type1/1/_update{ "script" : "ctx._source.new_field = 'value_of_new_field'"} 참고사이트https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html
[type과 index삭제하기] DeleteMapping APIhttps://www.elastic.co/guide/en/elasticsearch/reference/1.4/indices-delete-mapping.html[다시해본결과 안되네요..] [type안에 데이터 삭제하기] post [인덱스]/[타입명]/_delete_by_query{ "query": { "match_all": {} }} API사이트https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html
1. RDB ElasticSearch 비교RDBElasticSearchDatabaseIndexTableTypeRowDocumentColumnField 참고사이트http://sarc.io/index.php/aws/565-aws-elasticsearch-index-document
Field datatypeseditElasticsearch supports a number of different datatypes for the fields in a document:Core datatypeseditstringtext and keywordNumeric datatypeslong, integer, short, byte, double, float, half_float, scaled_floatDate datatypedateBoolean datatypebooleanBinary datatypebinaryRange datatypesinteger_range, float_range, long_range, double_range, date_rangeComplex datatypeseditArray data..
예시) 쿼리스트링 방법eunbok_test/test_board/_search?q=*&_source_include=user_id,board_title,write_date 예시) 리퀘스트바디{ "_source": "받아올 필드", "query": { "match_all": {} }} "_source": { "includes": [ "obj1.*", "obj2.*" ], "excludes": [ "*.description" ] }, 참고사이트https://www.elastic.co/guide/en/elasticsearch/reference/5.5/docs-get.html - 쿼리스트링https://www.elastic.co/guide/en/elasticsearch/reference/current/search-..
val newstr = str.replace("\r\n", "\\n")참고사이트https://stackoverflow.com/questions/2392766/multiline-strings-in-json