Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "index.v1": {
- "mappings": {
- "profile.event": {
- "dynamic_templates": [
- {
- "participant_profile_single": {
- "path_match": "event.participant_profile.single.*",
- "mapping": {
- "fields": {
- "raw": {
- "type": "keyword"
- }
- },
- "type": "text"
- }
- }
- },
- {
- "participant_profile_multi_value": {
- "path_match": "event.participant_profile.multi.*.value",
- "mapping": {
- "fields": {
- "raw": {
- "type": "keyword"
- }
- },
- "type": "text"
- }
- }
- },
- {
- "participant_profile_multi": {
- "path_match": "event.participant_profile.multi.*",
- "mapping": {
- "type": "nested"
- }
- }
- }
- ],
- "properties": {
- "event": {
- "properties": {
- "participant_profile": {
- "properties": {
- "multi": {
- "type": "nested",
- "properties": {
- "certifications": {
- "type": "nested",
- "properties": {
- "value": {
- "type": "text",
- "fields": {
- "raw": {
- "type": "keyword"
- }
- }
- }
- }
- },
- "business_categories": {
- "type": "nested",
- "properties": {
- "value": {
- "type": "text",
- "fields": {
- "raw": {
- "type": "keyword"
- }
- }
- }
- }
- }
- }
- },
- "single": {
- "type": "nested",
- "properties": {
- "eng_level": {
- "type": "text",
- "fields": {
- "raw": {
- "type": "keyword"
- }
- }
- },
- "primary_function": {
- "type": "text",
- "fields": {
- "raw": {
- "type": "keyword"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- {
- "_index": "index.v1",
- "_type": "profile.event",
- "_id": "865981132.112",
- "_score": 1,
- "_source": {
- "event": {
- "participant_profile": {
- "single": {
- "eng_level": "high",
- "primary_function": "ceo"
- },
- "multi": {
- "certifications": [
- {
- "value": "iso_20001"
- }
- ],
- "business_categories": [
- {
- "value": "sbc_sdvosb"
- },
- {
- "value": "sbc_vosb"
- }
- ],
- }
- }
- }
- }
- }
- {
- "query": {
- "nested": {
- "path": "event.participant_profile.multi.*",
- "query": {
- "more_like_this": {
- "like": [
- {
- "_id": "865981132.112",
- "_type": "profile.event"
- }
- ],
- "fields": [
- "event.participant_profile.multi.*.value"
- ],
- "minimum_should_match": "1%"
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment