[ 0] "",
[ 1] "!.e",
[ 2] "!mail.ru",
[ 3] ",ail.ru",
[ 4] ",mail.ru",
[ 5] "-.ru",
[ 6] ". f. rfj",
[ 7] ".ru",
[ 8] "/gmail.com",
This file contains hidden or 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
#!/usr/bin/env ruby | |
# find and replace incorrect field values in elasticsearch indexes. | |
# Run: | |
# ruby ./bin/fix_elk_attribute_conflict elk_user=<name> elk_password=<password> index_type=<index_type> host=<host_ip> | |
# port=<host_port> attribute_name=<attribute_name> attribute_check_regexp='^\d+$' ssl=true | |
# name, password - nginx basic auth credentials | |
# index_type=<index_type> - type of elasticsearch indexes | |
# host=<host_ip> port=<host_port> - host&port of elasticsearch node | |
# attribute_name=<attribute_name> - name of field which need to correct | |
# attribute_check_regexp - regexp for check if value is String |
This file contains hidden or 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
var arr = ["abc", "bac","abc", "d","et","d","et","zzz"]; | |
const unorderedStat = {} | |
arr.forEach((item, index) => { | |
const key = item.split('').sort().join() | |
if (!unorderedStat[key]) { | |
unorderedStat[key] = [index] | |
} else { | |
unorderedStat[key].push(index) |
This file contains hidden or 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
var arr = ["abc", "bac","abc", "d","et","d","et","zzz"]; | |
/** | |
* Сравнивает две строки на похожесть | |
* @param {String} sample1 | |
* @param {String} sample2 | |
*/ | |
const compare = (sample1, sample2) => { | |
return sample1.length == sample2.length && sample1.split('').filter((letter) => sample2.includes(letter)).length > 0 | |
} |
This file contains hidden or 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
```javascript | |
{ | |
name: "Ближневосточные языки", | |
kind: "group", | |
type: "Группа курсов", | |
order: 10, | |
items: [ | |
{ | |
name: "Татарский", | |
kind: "group", |
Note: This was written using elasticsearch 0.9.
Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document:
$ curl -X POST 'http://localhost:9200/thegame/weapons/1' -d \
'{
"_id": 1,
- https://trello.com/c/71tkr2vo/67-при-заполнении-запроса-в-поиске-фильтре-при-нажатии-клавиши-ввод-не-реагирует-только-после-нажатия-на-кнопку-показать-нужно-сдел
- https://trello.com/c/RSSCRmOM/63-в-жк-которые-имеют-несколько-зданий-или-корпусов-в-заголовке-карточек-корпусов-должны-отражаться-уникальные-наименования-наприме
- https://trello.com/c/BsNjUJLm/105-нет-на-сайте-домов-секций-и-дач-в-области
- [https://trello.com/c/tRBnqhRl/56-карточка-добавить-объект-коммерческая-недвижимость-лишнее-номер-квартиры-вид-дома-виды-ванных-комнат-площадь-кухни-а-также-при-в](https://trello.com/c/tRBnqhRl/56-карточка-д
This file contains hidden or 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
<!doctype html> | |
<html lang="utf-8"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<!-- Google Tag Manager --> | |
<script> | |
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-KVSBR3'); | |
</script> | |
<!-- End Google Tag Manager --> | |
<title data-react-helmet="true"> |
object_id_1c | WayFile | unloadAnnouncement | ThisDocument |
---|---|---|---|
О00011309 | 20170310/teh.pasp. eksplikatsiya.jpg | 0 | 0 |
О00011309 | 20170310/102.jpg | 1 | 0 |
О00011309 | 20170310/103.jpg | 1 | 0 |
О00011309 | 20170310/104.jpg | 1 | 0 |
О00011309 | 20170310/svidetelstvo.jpg | 0 | 0 |
О00011309 | 20170310/107.jpg | 1 | 0 |
О00011309 | 20170316/101.jpg | 1 | 0 |
{:building_id_1c=>"000000001", :flat_within_entrance=>5},
{:building_id_1c=>"000000047", :flat_within_entrance=>26},
{:building_id_1c=>"000000046", :flat_within_entrance=>1},
{:building_id_1c=>"000000048", :flat_within_entrance=>48},
{:building_id_1c=>"000000049", :flat_within_entrance=>30},
{:building_id_1c=>"000000094", :flat_within_entrance=>2},
{:building_id_1c=>"000000093", :flat_within_entrance=>8},
{:building_id_1c=>"000000095", :flat_within_entrance=>6},
{:building_id_1c=>"000000091", :flat_within_entrance=>5},