Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -s -H "Content-Type: application/json" -X POST 'localhost:9200/_all/_search?size=10&pretty' -d '
- {
- "_source": ["FULLOFFNAME3", "FULLADDRHOUSENUM"],
- "query":
- {
- "bool":
- {
- "should":
- [
- { "bool": {
- "should": [
- {
- "terms_set": {
- "FULLOFFNAME4" : {
- "terms" : [" ще", "щер", "ерб", "рби", "бин", "инк", "нка", " г", " зе", "зел", "елё", "лён", "ёна", "ная", " ул", " до", "дом", " 28", "28а", " ли", "лит", "ите", "тер", " б"],
- "minimum_should_match_script": {"source": "1"}
- }
- }
- }
- ],
- "boost": 1.2
- }},
- {
- "terms_set": {
- "FULLADDRHOUSENUM" : {
- "terms" : [" ще", "щер", "ерб", "рби", "бин", "инк", "нка", " г", " зе", "зел", "елё", "лён", "ёна", "ная", " ул", " до", "дом", " 28", "28а", " ли", "лит", "ите", "тер", " б"],
- "minimum_should_match_script": {"source": "1"}
- }
- }
- }
- ]
- }
- }
- }' | grep "FULLADDRHOUSENUM\|FULLOFFNAME3"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement