Skip to content

Add a phone number normalization TokenFilter [LUCENE-3663] #4737

@asfimport

Description

@asfimport

Phone numbers can be found in the wild in an infinity variety of formats (e.g. with spaces, parenthesis, dashes, with or without country code, with letters in substitution of numbers). So some Lucene applications can benefit of phone normalization with a TokenFilter that gets a phone number in any format, and outputs it in a standard format, using a default country to guess country code if it's not present.


Migrated from LUCENE-3663 by Santiago M. Mola, 2 votes, updated Jan 24 2012
Attachments: PhoneFilter.java (versions: 2)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions