7. Highlighting
Search for ‘to’
impossible to keep up with it all. But, with times constantly
changing, we have to do our best to keep up ... that everyone
should know more about is FTAs, free to air satellite receivers
and files. An FTA receiver
8. Highlighting
01
Number of
fragmentsConfigure the number of
fragments that should be returned.
Default value of this property is 2.
02
Fragment size
The length of the fragment can be
set with this property. The default
value is 100.
03
Concatenation
Choose how to seperate the
fragments from each other. Default
three dots are used to seperate
fragments.
04
Post tag
Highlighted words are surrounded
with HTML tags. Default value is a
</em> tag.
05
Pre tag
Highlighted words are surrounded
with HTML tags. Default value is a
<em> tag.
impossible to keep up with it all. But, with times constantly changing, we have to do our best to keep up ...
that everyone should know more about is FTAs, free to air satellite receivers and files. An FTA receiver
9.
10. Statistics
JANUARY FEBRUARY MARCH APRIL MAY JUNE JULY AUGUST
View the most frequent searches by last 24
hours, week, month or year in a visual. This
statistic will also show a ranking of most
search queries.
Most frequent searches
View the searches without hits by last 24
hours, week, month or year in a visual. This
statistic will also show a ranking of most
search queries without hits.
Searches without hits
View the searches without relevant hits by
last 24 hours, week, month or year. The
number of click-through rate per search
query is show.
Searches without relevant hits
11. Statistics - Tracking
• Track search queries and click
behavior
• Enable tracking
• Use the StatisticsTrack method
• Call the
RequiredClientResources
method on the layout view
• Custom tracking
Sample
_client.UnifiedSearchFor(query)
.StatisticsTrack()
.GetResult(hitSpecification);
Html.RequiredClientResources(RenderingTa
gs.Footer)
12. Statistics - Functionality
01
Autocomplete
02
Did you
mean
03
Spellcheck
Get search queries from previous visitors. Queries can also be
added in the EPiServer Find interface.
Use the did you mean functionality to help users find relevant content based on
current search query.
Use the spellcheck functionality to give suggestions based on current search query.
13. Statistics – Autocomplete
• Use .NET client API
• Or Javascript
• Configure in EPiServer Find
UI
• Add items
• Suggestions based on real
search queries
Gr
Groups
Group
Searc
h
Added in
UI
14. Statistics – Did you mean
• Use .NET client API
• Or Javascript
• Configure in EPiServer Find
UI
• Add items
• Suggestions based on real
search queries
Group
Collection
Company
Searc
h
Added in
UI
15. Statistics – Spellcheck
• Use .NET client API
• Or Javascript
• Suggestions based on real
search queries
Grouz
Group
Searc
h
16.
17. Hotel demo site
Allan Thraen: “Want to try out
EPiServer Find? Here is an
easy way, and fun challenge!”
• hotelfinder-episerver.azurewebsites.net
• github.com/patkleef/HotelFinderSite
• Typed search
• Filters
• Facets
• Geo search
27. Filtering
Fast and flexible
• Similar to Where in LINQ
• Use BuildFilter to create complex filters based on user
input
• Know your caching
• Project to limit data traffic
29. Facets
Aggregated Data
• Terms, Histogram, Filter, Range and
Geographical
• Default size is 10
• Filter vs FilterHits – know the difference!
30. Multi search
Multi search
• Multiple queries, ONE request
• http://geta.no/blogg/building-an-
advanced-search-page-using-
episerver-find/
31. Find greatness with Find
Key points to remember
• Scalable, flexible and powerful – be creative
• Always cache*
• Project if you can
*) The query is cached, so be smart when filtering on DateTime
33. LAB Exercises
1. Filter on price get all hotels that have price between 100 and 200
2. Filter on rating/review find all hotels that have a star rating of either 4 or 5,
OR review rate of 9 or 10 with more than 50 reviews
3. Filter on location get all hotels within 5 km of the cosmopolitan hotel, order
by distance from cosmopolitan hotel (closest first)
34. LAB Exercises
4. Advanced filtering Show hotels with more than 2 stars within 10 km of the
cosmopolitan hotel that offer room service, have air condition and have chain
specified by user input* (*using Console.ReadLine())
5. Range facets Create range facets for price ranges 20-50, 51-100 and 101-
150 USD
6. Facet for Country List name of all countries that have hotels
7. Basic text search, query entered by user, in fields Name and Description
35. Demo and lab code on Github
https://github.com/patkleef/EPiServerFindDemo
Well documented, world.episerver.com
Cashing: No cache key is required as that will be automatically generated from the search request.
*DateTime in query!
Projection: Less data transfered = smaller response
Don’t be afraid to duplicate data