SalesforceFoundation / visualforce-typeahead

A flexible typeahead component for use on Visualforce pages. Uses the typeahead.js library from Twitter.
BSD 3-Clause "New" or "Revised" License
73 stars 37 forks source link

SOSL or SOQL #5

Open iicray opened 10 years ago

iicray commented 10 years ago

Just install the package, and it can't work at all!!

After the debug, I found it is beacuse of the SOSL problem.

I dont know the reason, however, the SOSL returns nothing at all. You can see it in the attached screenshot. image

I double check the global search functionality as well. And, it confirms the problem of SOSL. The SOSL at the moment is not function.

After modify the class a little, and change to use SOQL. The problem is gone, and all the feature of typeahead works as it should be.

Since the fact, I suggest to add the option for users to use SOQL.

Thanks.

groundwired commented 10 years ago

Did you add those records just before searching? SOSL index takes a little time to update.

It is a good idea to offer either SOQL or SOSL, but SOSL is nice because it searches many fields at once.

iicray commented 10 years ago

It's a just-created Dev Org. And, those records are the defaults in the Dev.

btyeung commented 9 years ago

Hi! Thanks for building this. Very useful. Question about filterClause, what is the proper syntax for that. For example if I'm looking up Contacts specifically for one account (our list of employees), is my syntax going to be "AccountId = 'thesfdcaccountid'" or is there more to it? Without the filter criteria, it works well but the resultset is too large. Thanks!