We maintain a database of hardware weights consisting of a text file with lines following the format
<part number> <part description> <weight> <other info ...>
for example:
27489-001 switchlight 0.05 ...
The problem is that our database is massive (over 156,000 entries so far) and not versatile. For example, the -001 in the entry above specifies a pin configuration and what text is written on the switch. There are presently ~150 different configurations, none of which affect the weight of the part. But we have to have a separate entry for all of them, and new ones are added regularly.
I would like to be able to include wirecards in the database:
27489-* switchlight 0.05 ...
and have it match any specific number searched for. Unfortunately "grep" and all other search utilities I have seen allow wildcards in the search item, but not in the database being searched. I can't be the first person to need something like this. Does anyone know of a search engine that allows wildcards in the database? It would need to be fast. So far the only scheme I have come up with would be prohibitively slow.
Anyone know of a solution?
<part number> <part description> <weight> <other info ...>
for example:
27489-001 switchlight 0.05 ...
The problem is that our database is massive (over 156,000 entries so far) and not versatile. For example, the -001 in the entry above specifies a pin configuration and what text is written on the switch. There are presently ~150 different configurations, none of which affect the weight of the part. But we have to have a separate entry for all of them, and new ones are added regularly.
I would like to be able to include wirecards in the database:
27489-* switchlight 0.05 ...
and have it match any specific number searched for. Unfortunately "grep" and all other search utilities I have seen allow wildcards in the search item, but not in the database being searched. I can't be the first person to need something like this. Does anyone know of a search engine that allows wildcards in the database? It would need to be fast. So far the only scheme I have come up with would be prohibitively slow.
Anyone know of a solution?