Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am using c# .net VS2010 . i am Looking for Algorithm for fastest data Search like google Search. I have Data in text file which contain millions of records.
Now my problem is I have one textbox for user entry.when user types keyword data should be searched from text file and provide user autosuggestion to select record. Please guide me which technique or Algorithm is good for this.Thanks in Advance.
Posted

I think the technique you are looking for is named indexing.

The principle is to build in advance an index of all words in your data file.
Then a user request it, you use the index to locate records.
 
Share this answer
 
Comments
CPallini 17-Nov-15 3:10am    
Likely, 5.
Patrice T 17-Nov-15 3:18am    
Thank you
There is a technology called Lucence that you can use to index and search text files

http://stackoverflow.com/questions/5074586/lucene-net-search-engine[^]

It's not a very user-friendly technology though, but look around at the various examples on the net and you might be able to get something working.
 
Share this answer
 
Comments
Member 12008933 17-Nov-15 5:46am    
Thanks for solution what exactly i am looking.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900