Search API Best Practices�October 18, 2014
By Greg Boggs
Tweet me at @gregory_boggs
User Experience »
Performance »
SEO Impact »
Search is hard. Facets can confuse users.
Search API is difficult to cache, and it can be slow.
Default configurations are bad practice.
Confusing Facets »
Unexpected Results »
Caching often fails »
The code is slow »
Duplicate content »
Nofollow pain »
User Experience
Search is hard.
Doing it well is harder.
Improving Search Experience
Search API Best Practices — User Experience
Checkbox Facets
Drop Down Facets
Performance
Search doesn’t have to be slow.
Facet API can produce thousands of unique pages.
Web crawlers get lost.
Individual search pages are expensive to generate.
THE CHALLENGE
Search API Best Practices — Performance
It’s breadcrumbs. No Really.
Solution
Result
Next steps
Search API Best Practices — Performance
Performance
Features
Ease of Use
Search API Best Practices — Solr vs Elastic
Seo Impact
Search API Best Practices — SEO Impact
Duplicate Content and Nofollow are Bad
Duplicate Content
Facet pages produce an array of duplicate, low quality content.
The Difficulties with Nofollow
So, what’s the best practice?
Disallow: *search-results/field-*
or Disallow: *search-results*
Search API Best Practices — SEO Impact
Nofollow Recommendations
Does it make sense to use rel="nofollow" for internal links? Like, for example, to link to your login page?� "So for internal links, links within your site, I would try to leave the nofollow off.” - Matt Cutts
What is a nofollow link?� “The nofollow keyword indicates that the link is not endorsed by the original author or publisher of the page, or that the link to the referenced document was included primarily because of a commercial relationship between people affiliated with the two pages.” - W3C��Does this mean “PageRank sculpting” (trying to change how PageRank flows within your site using e.g. nofollow) is a bad idea?
“I wouldn’t recommend it, because it isn’t the most effective way to utilize your PageRank.” - Matt Cutts
“NoFollow doesn’t preserve PageRank. It burns it. Bzzzzt” - Ian Lurie (on Search Engine Land)
What’s coming in Drupal 8
Json endpoint for REST Services
Apache Solr and Search API joining forces
Better index stats
Perhaps better defaults?
Thank you. Questions?
Greg Boggs, Drupal Developer
http://www.gregboggs.com �@gregory_boggs