Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Using & Extending Search API With Plugins - Dru...

Using & Extending Search API With Plugins - DrupalCamp London 2019

Mohit Aghera

March 03, 2019
Tweet

More Decks by Mohit Aghera

Other Decks in Programming

Transcript

  1. 4 axelerant.com Search API Ecosystem • Search API • Solr

    Search • Database Search • Facets API • Search Autocomplete • Search API Ranges
  2. 5 axelerant.com Search API Architecture Holds storage mechanism What to

    search and how to Search API Server Central configuration to hold field and related index data Backend Independant Search API Index Views, Facets Backend independant Consumers Tells what to index and How to index Uses to render search results
  3. 6 axelerant.com Search API Backend • Specify type of server

    • Specifies how data will be indexed and used • Solr servers, Mongo DB servers, Xapian servers
  4. 8 axelerant.com Search API Indexes Data Source • Types of

    items • Nodes, users etc. Fields Processors Indexes • Properties to be searchable • Full text, filtering, sorting • Modify indexing and searching Process
  5. 10 axelerant.com Facets • Dynamically filtering results • Provides widgets

    and types • Range widgets • Checkbox widgets • And many more..
  6. 12 axelerant.com Facet API and widgets • Use cases like

    where we need to provide custom ranges • Provide text field to filter results
  7. 13 axelerant.com Building custom Facet widgets • Extends “WidgetPluginBase” •

    Override “build()” method • Take care of “getQueryType()”