Beyond the Solr Eclipse Building blazing fast Drupal 8 search with - - PowerPoint PPT Presentation

beyond the solr eclipse
SMART_READER_LITE
LIVE PREVIEW

Beyond the Solr Eclipse Building blazing fast Drupal 8 search with - - PowerPoint PPT Presentation

Beyond the Solr Eclipse Building blazing fast Drupal 8 search with Solr and no code TANAY SAI Technical Services Manager Acquia India www.tanay.co.in @saitanay JAYAKRISHNAN JAYABAL Technical Architect Acquia India @jayakrishnanjay


slide-1
SLIDE 1

Beyond the Solr Eclipse

Building blazing fast Drupal 8 search with Solr and no code

slide-2
SLIDE 2

TANAY SAI

Technical Services Manager Acquia India

www.tanay.co.in @saitanay

slide-3
SLIDE 3

JAYAKRISHNAN JAYABAL

Technical Architect Acquia India

@jayakrishnanjay

slide-4
SLIDE 4
slide-5
SLIDE 5

Modules/Software Used

  • Drupal 8
  • https://www.drupal.org/project/search_api
  • https://www.drupal.org/project/search_api_solr
  • https://www.drupal.org/project/facets
  • Solarium (Required by Search API)

○ composer require solarium/solarium

slide-6
SLIDE 6

What is Solr?

  • an open source search platform
  • built upon a Java library called Lucene
slide-7
SLIDE 7

Who uses Solr?

From http://lucene.apache.org/solr/

slide-8
SLIDE 8

Problems with Core Search Why do we need it in place of database search?

  • Slow especially with a large number of nodes
  • Features like Stemming, Highlighting, Spell check missing or

tricky to accomplish

  • Queries on Phrases don’t work great, compared to solr
slide-9
SLIDE 9

Apachesolr

“fast access to big data on a budget”

slide-10
SLIDE 10

Options available for hosting Solr

  • Acquia Search - Bundled with Acquia Cloud
  • www.hostedapachesolr.com
  • www.measuredsearch.com
  • Fairly simple to spin up your own solr instance
  • n AWS alongside your webserver
slide-11
SLIDE 11

Search API Solr vs Apache Solr D7 & D8

slide-12
SLIDE 12

What is a server? What is an index?

slide-13
SLIDE 13
slide-14
SLIDE 14
slide-15
SLIDE 15
slide-16
SLIDE 16
slide-17
SLIDE 17

Adding a Server….

slide-18
SLIDE 18
slide-19
SLIDE 19
slide-20
SLIDE 20
slide-21
SLIDE 21

Building the Index..

slide-22
SLIDE 22
slide-23
SLIDE 23

Building the View..

slide-24
SLIDE 24

Building the Search Box..

slide-25
SLIDE 25

Building “Phone Finder”

slide-26
SLIDE 26

1) Check index - See all fields 2) Create View - display results only 3) Enable Facets module 4) Create “Brand” Facet 5) Place the block 6) Create “Price” Exposed filter 7) Place the block 8) Create “Features” Facet 9) Place the block

slide-27
SLIDE 27
  • drupal:8.3.1
  • search_api:8.x-1.0-rc2 (Latest : 8.x-1.0 released on April 26))
  • search_api_solr:8.x-1.0-beta2 (Latest : beta2)
  • facets:1.0.0-alpha9 (Latest)

Module Compatibility

slide-28
SLIDE 28

More modules in the ecosystem..

https://www.drupal.org/project/search_api_attachments - In Beta

slide-29
SLIDE 29

Work in Progress..

  • Autocomplete - Needs work
  • Multilingual - Needs work
  • Spell Check / “Did you mean..” - In Sandbox - Needs work
slide-30
SLIDE 30

Our small work on D7 Apachesolr

slide-31
SLIDE 31

www.d8cards.com

Also Checkout..

slide-32
SLIDE 32

Questions?

Jayakrishnan Jayabal @jayakrishnanj jayakrishnan.jayabal@acquia.com Tanay Sai @saitanay www.tanay.co.in tanay.sai@acquia.com @ Acquia Booth - Between 2PM-3PM today Site Building Videos available at http://bit.ly/beyondsolr