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

Advanced Search in Sitecore using Solr

Søren Engel
November 15, 2016

Advanced Search in Sitecore using Solr

Presented at the Danish Sitecore User Group Meetup, November 2016: The story about how you can leverage the ContentSearch API to create a more generic, configurable way, of working with search queries in Sitecore

Søren Engel

November 15, 2016
Tweet

More Decks by Søren Engel

Other Decks in Programming

Transcript

  1. Or the story about … … how you can leverage

    the ContentSearch API to create a more generic, configurable way, of working with search queries in Sitecore
  2. I’m working as a System Consultant at Pentia A/S in

    Copenhagen. Currently I'm developing a lot of different solutions using .NET, ASP.NET and Sitecore. Twitter: @soren_engel Blog: soen.ghost.io
  3. The journey | How we normally use the ContentSearch API

    | The (hidden) problems that comes along | Towards a solution | Next steps | I’ll do my best to answer your questions!
  4. Let’s look at an example Step 1 Figure out what

    you should query Step 2 Create your custom search query logic Step 3 Present search results to the user
  5. | The query only exists in code | Changes to

    the search query requires two things A developer A deploy | Time to market is slowed down | Cost (even small changes can be expensive) | Difficult to personalize search queries Yes, there are some issues…
  6. | Goals | Rethinking the concept | Making an architecture

    that supports the goals | Looking at the solution (code) so far (includes a demo) The steps towards a solution…
  7. | Enable search query configuration without code changes | Allow

    specifying nested search query structures for complex queries | Allow a search query to either react to values provided dynamically, or by using preset default values | Use the ContentSearch API as the underlying interface for querying search results | Make it possible to vary search queries based on personalization | Enable extensibility What should the goals be?
  8. | Finalizing the configuration from within Sitecore | Add unit

    tests | Write documentation | Add new features: Paging, Sorting, Facets, and so on | Conjunction will be open sourced on GitHub! | Follow along my blog for more details on the API, and be sure to give me feedback So, what’s coming up?