searching for credit card numbers

Post Reply
alex135
Posts: 2
Joined: Thu Dec 20, 2007 4:30 pm

searching for credit card numbers

Post by alex135 »

Sorry if this is a newby question but I'm just getting started with the search appliance.

We are trying to find a way to search for major credit card numbers within documents. I created a test doc with bogus numbers for the major card companies.

Added that file to our test data set and waited for the box to crawl the file.

Once i confirmed the file has been crawled i used this string to search fro the numbers


/[1-9]{3}\-=[0-9]{2}\-=/[0-9]{4}\

which i found in the texis help but can no longer find.

Anyway, the box returns 'query not indexable'. I would like to know why the query won't work.

Thanks,

Alex135
alex135
Posts: 2
Joined: Thu Dec 20, 2007 4:30 pm

searching for credit card numbers

Post by alex135 »

i just realized that i copied the incorrect string into my post...

here's the one i meant to send


/[1-9]{4}\-=[0-9]{4}\-=/[0-9]{4}\-=/[0-9]{4}\

sorry for any confusion
User avatar
mark
Site Admin
Posts: 5514
Joined: Tue Apr 25, 2000 6:56 pm

searching for credit card numbers

Post by mark »

You're asking for a "regular expression" match. Those can't take advantage of an index so must search linearly through the raw data which can be slow. There are search options to allow linear searching but in general it's better if there's some other indexable term that can be added to the query to reduce the number of records that require linear searching.

Also, your expression doesn't seem right. Perhaps you want something like
/[0-9]{4}-=[0-9]{4}-=[0-9]{4}-=[0-9]{4}
Note that amex uses a different format than most others and won't match that expression.
Post Reply