You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that I can specify an empty template for each dataset, but I have 6 or 7 datasets and I would like to specify something to be displayed when none of the datasets have hits.
If I just type in "4q8nywrfxm", I don't want to see 6 datasets all saying that they can't find that text, I just want one message, specified at the typeahead level (not the dataset level).
Does that make sense?
I copied this over from the old repo which I was using until I realized it's no longer maintained. Sorry if this is a dup or if it was already fixed but I couldn't find that it was.
I think an elegant way to support this would be to:
Support datasets that call sync and async.search(...) callbacks more then once (I'm pretty sure all calls except the first one are currently ignored)
Make a dataset class (constructor) that takes multiple datasets as arguments and represents their union (in kind of a set-theory sense). It's .search() method would just call all the "wrapped" dataset's search methods.
Then one would be able to turn any number of datasets into one with just one "templates.empty" option.
Activity
futpib commentedon Dec 22, 2016
I think an elegant way to support this would be to:
syncandasync.search(...)callbacks more then once (I'm pretty sure all calls except the first one are currently ignored).search()method would just call all the "wrapped" dataset'ssearchmethods.Then one would be able to turn any number of datasets into one with just one "templates.empty" option.