Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / March 2006

Tip: Looking for answers? Try searching our database.

best way to index text numerical data ?

Thread view: 
benwbrewster@gmail.com - 31 Mar 2006 17:58 GMT
Hi I have a lot of data that is in a TEXT flat file which are numbers
does
anyone have a good suggestion for indexing TEXT numbers (zip codes,
other codes, dollar amounts, quantities, etc). since Lucene and other
indexers are really optimized for Alpha character indexing. What
approaches are typically taken in computer science for example to index

text numbers..hash maps or something else ??

Thank you,

Jack
Roedy Green - 31 Mar 2006 18:50 GMT
>anyone have a good suggestion for indexing TEXT numbers (zip codes,
>other codes, dollar amounts, quantities, etc)

You can convert them the Integers or Longs and use HashMaps or
TreeMaps.  You could invent a specialised map that used primitives
rather than objects

For dense number, you can use an array lookup.

For Postal codes, V8V 2Y5 you can treat them as mixed base numbers and
translate them to binary.

You can feed them to an SQL database and let it worry about it.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.