Javascript API

Search in attributes

Sample for request assets by attribute

You can edit or play with this Sample on jsFiddle and download or fork the source code on GitHub.

  • text, to filter on some store's fields by comparing them to a text value.
  • tag, to filter on store's tags.
  • type, to filter on store's types.

Sample Usage

var sp = woosmap.search.SearchParameters({
    query: 'type:"a_type" and tag:"hockey"'
});

is equivalent to

var q = woosmap.query;
var sp = woosmap.search.SearchParameters({
    query: q.and([q.F('type', 'a_type'), q.F('tag', 'hockey')])
});

For more details, see the SearchQuery Search API Documentation.