Skip to content

A Polymer element that allows multiple searches simultaneously.

License

Notifications You must be signed in to change notification settings

DigElements/bulk-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bulk-search

A Polymer element that allows multiple searches simultaneously.

Example

var searchFields = [{
  color: "cyan",
  dateProperties: {},
  facetTransform: transFunc(),
  facets: true,
  field:"knowledge_graph.caliber_gauge.key",
  icon:"maps:local-offer",
  key:"caliber_gauge",
  link:"entity",
  queryField:"knowledge_graph.caliber_gauge.value",
  result:"header",
  search:true,
  sort: {
    sortId:1,
    sortType:"entity"
  },
  styleClass:"entity-cyan",
  title:"Caliber or Gauge",
  titlePlural:"Calibers or Gauges",
  type:"string",
},
{
  color: "pink",
  dateProperties: {},
  facetTransform: transFunc(),
  facets: true,
  field:"knowledge_graph.city.key",
  icon:"maps:place",
  key:"city",
  link:"entity",
  queryField:"knowledge_graph.city.value",
  result:"header",
  search:true,
  sort: {
    sortId:1,
    sortType:"entity"
  },
  styleClass:"entity-pink",
  title:"City",
  titlePlural:"Cities",
  type:"location",
}];
<bulk-search
  search-fields="[[searchFields]]"
  parameter-key="[[searchFields.0.key]]"
  search-parameters="{{searchParameters}}"
  process-request="{{processRequest}}">
</bulk-search>

Dependencies

Dependencies are installed using Bower:

npm install -g bower
bower install

Testing

Tests are run using web-component-tester:

npm install -g web-component-tester
wct

Demonstration & Documentation

Demonstration and documentation are viewed using polyserve:

npm install -g polyserve
polyserve

About

A Polymer element that allows multiple searches simultaneously.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages