Description
searchquery.js is not exported to the main module, meaning its functions are inaccessible.
Also found some tiny issues while exploring this one, including here since they should be made in the same commit
- Typo here
- Missing function parameter name here
- Index is hardcoded here
(I solved this by filling out the constructor for the SearchQuery object so it contained a query and an index, so as to match the old style index specification syntax var q = new SearchQuery('hotels', qp) )
There may well be more I didn't catch but this was enough to fix my code