Last active
April 9, 2018 12:13
-
-
Save philangist/6489a4b85b41cf77ce1d2ddc01aaf180 to your computer and use it in GitHub Desktop.
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
{ | |
'matched_fields': { | |
'field_1': { | |
'field_value': 'foobar baz', | |
'matches': [ | |
{'matched_value': 'foo', 'match_offsets': [(0, 3)]}, | |
{'matched_value': 'bar', 'match_offsets': [(3, 6)]}, | |
{'matched_value': 'ba', 'match_offsets': [(3, 5), (7,9)]}, | |
] | |
}, | |
'field_2': { | |
'field_value': 'lorem ipsum dolor sit amet...', | |
'matches': [ | |
{'matched_value': 'dolor', 'match_offsets': [(12,17), (45,50),(1000,1005)]}, | |
] | |
}, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment