This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JDBC and the fly likes Search engine related question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "Search engine related question" Watch "Search engine related question" New topic
Author

Search engine related question

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Hello,

When user writting text into search input field then how can I display suggestions like google

Any clue please

Thanks & best regards
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You have to capture the text ebntry client side and probably use AJAX to run the query in the background. This is will be quite slow if you are just running the searches against a database. I'd recommend some sort of IR technology (like Lucene) instead.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Shashank Rudra
Ranch Hand

Joined: Mar 26, 2009
Posts: 131
pardon Paul- what is IR technology. An brief introduction will do. TIA


Programmer Analyst || J2EE web development/design
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
I written my own code instead of using Lucene but want to refine it. getting results from db while user inserting the input is very slow indeed but am seeing on many websites that they are displaying suggestion very fast as I given the example of google.com

Can you please more specific regarding IR technologies because I am unable to search any doc with this abreviation

Thanks & best regards
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2501
    
    8

Giffy Geraldo wrote:pardon Paul- what is IR technology. An brief introduction will do. TIA
Didn't know either and looked it up:
IR is information retrieval.


OCUP UML fundamental and ITIL foundation
youtube channel
 
GeeCON Prague 2014
 
subject: Search engine related question