Need help to create Search Engine

I have jsp page where user can enter their search parameter, search parameter can be any combination of street, city, state and country (USA only). At back end I have to find out which is street, which is city, which is state and so on. How can I do this without using database?
[292 byte] By [Rakesh_Thawaita] at [2007-11-27 4:16:30]
# 1
> How can I do this without using database?Err...by keeping the data in a flat file? Or anywhere else where you can get persistent storage.
-Kayaman-a at 2007-7-12 9:23:01 > top of Java-index,Java Essentials,Java Programming...
# 2

ok! so it was like u dont want to use any database language!

Thats actually fine. Usage of databse languages otherwise also consumes a lot of time. When java offers plenty of file streams why not just store ur own database in a simple text file and use binary search patterns to give a superior speed to ur search engine...nobody will beat ur engine dear!

efarera at 2007-7-12 9:23:01 > top of Java-index,Java Essentials,Java Programming...
# 3
> superior speed to ur search engineAlthough possible it is:1) Unlikely2) At the sacrifice of robustness particularly if any modifications to this file need to be made.
ChristopherAngela at 2007-7-12 9:23:01 > top of Java-index,Java Essentials,Java Programming...