Presented two parts -
Part 1 -
Solr architectural view
Basic algorithm for search – How it works
Synonyms
Stop word
Protected word
Spell checker
Highlighter
Analyzers – How it works
Tokenizers – How it works
Filters - How it works
How to add custom filters and extending Solr core.
Part 2 -
Sitecore SXA Search - Overview
Understand OOTB options
Facet
Scope
Tokens
Boosting.
Hands-on session
Creating a search result page
view more option
sorting
Facet
Boosting and rule engine
Extending scope, facet and new custom tokens resolver.
Troubleshooting tips for search issues
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Siteocre Sxa and Solr - Sitecore User Group UAE Dubai- Jitendra Soni
1. PRESENTATION
COVER TITLE
LOREM IPSUM DOLOR SIT AMET,
CONSECTETUR ADIPISCING ELIT.
SITECORE SXA SEARCH
SITECORE USER GROUP UAE – DUBAI
29TH AUG 2020
2. WHO IS YOUR PRESENTER TODAY?
• 13+ years of IT experience.
• 7+ years Sitecore.
• 8 Sitecore projects.
• 5 Sitecore XP and XC new project.
• Search (Solr, Azure, Coveo and Fusion).
• Living in Sydney with family.
• Awarded by President of India in 2000
• State level winner for Genius student
award -1996
SOFTWARE DEVELOPMENT PERSONAL
2
• Sitecore certified
• Microsoft Technology Specialist- MCPD
• Coveo Certified Platform Developer
• Google GTM and GA Certified
3. • Sitecore Stack Exchange- http://sitecore.stackexchange.com
• Sitecore Community Portal - https://community.sitecore.net/
• Community Docs - https://sitecore-community.github.io/docs/
• Sitecore User group –
• Sitecore User Group Directory
• http://sitecoreug.org/
• http://www.MeetUp.com
• https://www.reddit.com/r/sitecore/wiki/user-groups
3
SITECORE COMMUNITY HOW YOU CAN CONNECT…..
4. Solr community connect…..
• I worked with Trey Grainger (Author of Solr in Action and AI Powered
Search) on one of the interesting Solr migration project.
4
7. PART 1 - SOLR
Agenda
• Solr architectural view
• Basic algorithm for search – How it works
• Synonyms
• Stop word
• Protected word
• Spell checker
• Highlighter
• Analyzers – How it works
• Tokenizers – How it works
• Filters - How it works
• How to add custom filters and extending Solr core.
7
10. How does scoring works in Solr?
10
Term Frequency (TF)
The frequency of a search term in a document, the higher the frequency is the higher score the hit will get.
In plain English if a search term is found many times in a document the higher the score is.
Inverse Document Frequency (IDF)
The rarity of a search term in all documents, the lower the frequency is the higher score the hit will get. If a
search term only occurs at a few places in an index the higher the score is. This is to avoid high ranking hits
on very common words.
Coordination Factor (CF)
The number of search terms that are present in a document, the more search terms that are found in a hit
the higher the score is. If many search terms are used documents that contain more of them will score
higher.
Fieldnorm (FN)
The length of a field value, the longer a field value with a hit is the lower the hit score will be. If a search
term is found in a very short text in a field the hit will score higher than if the text is long.
20. Filter Porter Stem Filter – How it works?
20
https://lucene.apache.org/solr/guide/8_1/filter-descriptions.html#porter-stem-filter
It does not accept a list of protected words
21. Snowball Porter Stemmer Filter– How it
works?
21
https://lucene.apache.org/solr/guide/8_1/filter-descriptions.html#porter-stem-filter
It does accept a list of protected words
22. How does facet works in Solr?
22
https://lucene.apache.org/solr/guide/8_1/filter-descriptions.html#porter-stem-filter
23. How does boost works in Solr?
23
https://localhost:8983/solr/sug_banglore/select?q=*%3A*&debug=true&bq=id:2^20000000000&dismax=true
There are two different types of boosting, index-time and query-time.
The two major differences between the two are:
•index-time boosting allows you to boost entire documents
•index-time boosting will have an effect on all your queries
The bf (Boost Functions) Parameter
The bq (Boost Query) Parameter
24. More read.. Solr LTR
24
http://jitendrasoni.blogspot.com/2019/11/solr-basic-algorithm-for-tf-and-idf.html
27. PART 2 - SITECORE
Agenda
• Sitecore SXA Search - Overview
• Understand OOTB options
• Facet
• Scope
• Tokens
• Boosting.
• Hands-on session
• Creating a search result page
• view more option
• sorting
• Facet
• Boosting and rule engine
• Extending scope, facet and new custom tokens resolver.
• New search features and update in 9.3
• Troubleshooting tips for search issues
27
28. Sitecore SXA Search - Overview
• SXA comes with flexible out-of-the-box search functionality
• All the filter parameters and values, such as current page, location,
and sort order, are stored in the browser URL after the hash sign
28
https://doc.sitecore.com/users/sxa/17/sitecore-experience-accelerator/en/search.html
29. What does facets means in Sitecore sxa?
• A facet is a way of refining search results by categorizing the items
returned by the search. For example, for a blog search page, all blogs
contain fields such as: author, date, and language. Based on these
fields, you can create facets to allow visitors to use them as filters.
• The facet types are: Bool Facet, Date Facet, Distance Facet, Float
Facet, Integer Facet, and List Facet.
The Sitecore platform facets are stored in
/sitecore/system/Settings/Buckets/Facets
29
30. What does facets means in Sitecore sxa?
continue..
• The following table lists which facets the components can use
30
Facet Component
Date Filter (Date)
Distance Filter (Radius), Location Finder
Float
Filter (Managed Range), Filter (Range Slider), Filter
(Slider)
Integer
Filter (Managed Range), Filter (Range Slider), Filter
(Slider)
List Filter (Checklist), Filter (Dropdown)
44. Aggregated facet filter
44
Allowing for creation of facet filter sets — dynamically showing and
hiding sub-components based on content available in Search
Results.
45. Facet summary filter – Demo
45
Showing the selected facets and allowing for removal of undesired filters
from the search context.
https://www.screencast.com/t/UZywVigqPNr