I’m using Freebase suggest. If user cannot find what he is looking for, he types it in the textfield and a new term is added into my database. The thing is, I would like suggest to search also through these added terms.
I found this answer, but I am not sure if it suits my needs, because I still want to see Freebase results.
Any ideas?
Ok, after a few more hours of googling and thinking I have figured this out.
I add synchornous ajax call (
'async':false) tobeforeSendcallback function in the suggest request function. It invokes a function which returns json array of values from my database. After asynchonous call to Freebase suggest service I add the two results together and display them.That’s it!