Differentiate between same nodes in Drupal Autocomplete Search I have implemented Autocomplete Search functionality. Autocomplete suggestion will be available based on characters typed in textbox. When user selects a suggestion then user will be navigated to the page.

Now I want to know that if any website contain same name then how to distinguish between these two.

Example - Website contain 4 Names of Person:- Sandy, Siren, Anita, Sandy.
When user type S in text field then 3 suggestion appear i.e - Sandy,Siren,Sandy.

How to distinguish between two "Sandy" using Drupal default Autocomplete feature.
Few Possibilities:


You can add a content-type name along with the node title when autocomplete shows the result to describe the user in which relation it goes. For e.g., "Sandy -- Content Type Name"
You can add a Nid along with the node title when autocomplete shows the result to describe the user in which relation it goes. For e.g., "Sandy -- Nid"
Nid I don't think is a good idea. But you can also set some relative name while getting result for user to know which "Sandy" should be chosen.


Hope it will take you on the right path.