• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Search engine related question

 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Shashank Rudra
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pardon Paul- what is IR technology. An brief introduction will do. TIA
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2602
13
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic