Skip to content

Commit

Permalink
readme formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
drewinin committed Aug 4, 2015
1 parent 7830644 commit 3f4585e
Showing 1 changed file with 53 additions and 52 deletions.
105 changes: 53 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ It's a hard problem to regex your way out of. An international phone number ofte
Note: This is a young project we're just starting to do testing on 8/3/2015. We'll improve as time goes on, but use at your own risk.

# Building and installing the plugin
mvn package
mvn package
./bin/plugin --url file:///....elasticsearch-phone/target/releases/elasticsearch-phone-1.0.0.zip --install elasticsearch-phone;

## Example inputs
Expand All @@ -23,57 +23,58 @@ Your indexing template will need to specify the analyzer for the field. EG

Sample allowed inputs (see PhoneIntegrationTest for more)
tel:+441344840400
tel:+498362930830
sip:abc@autosbcpc
sip:+13119310462;[email protected]:8060
tel:+498362930830
sip:abc@autosbcpc
sip:+13119310462;[email protected]:8060

## Example tokenization

INPUT (with country code derived with google liphone)

sip:+13169410766;[email protected]:8060

TOKENS

+13169410766;ext=2233
1
2233
3169410766
3
13
31
131
316
1316
3169
13169
31694
131694
316941
1316941
3169410
13169410
31694107
131694107
316941076
1316941076
3169410766
13169410766

INPUT (without a country code)

tel:8177148350

TOKENS

8177148350
8
81
817
8177
81771
817714
8177148
81771483
817714835
8177148350
INPUT (with country code derived with google liphone)

sip:+13169410766;[email protected]:8060

TOKENS

+13169410766;ext=2233
1
2233
3169410766
3
13
31
131
316
1316
3169
13169
31694
131694
316941
1316941
3169410
13169410
31694107
131694107
316941076
1316941076
3169410766
13169410766

INPUT (without a country code)

tel:8177148350

TOKENS

8177148350
8
81
817
8177
81771
817714
8177148
81771483
817714835
8177148350

0 comments on commit 3f4585e

Please sign in to comment.