spca2014 social refiners svenson

14

Upload: nccomms

Post on 02-Jul-2015

143 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Spca2014 social refiners svenson
Page 2: Spca2014 social refiners svenson

Social Refiners

Mikael Svenson – Principal Consultant

@mikaelsvenson – [email protected] – techmikael.blogspot.com

Page 3: Spca2014 social refiners svenson

Pre-requisites

• A good understanding of search (FQL helps)

• A good understanding of Display Template logic

• Programming skills – JavaScript

Page 4: Spca2014 social refiners svenson

Agenda

• Define social refiners

• Create a Department refiner for content

• Create a “fake” refiner to filter on social distance

Page 5: Spca2014 social refiners svenson

Copy of query I wrote in 2009

(<100>amsterdam) OR (<50>"dutch capital" OR "venice of the north") OR (<30>"coffee shop city")

IN CONTEXT(<30>location=@Home AND <50>device=smartphone AND <20>freshness=30days AND <50>hobby=SHAREPOINT)

Page 6: Spca2014 social refiners svenson

Let’s start with something easier

• “Close to you”

• Someone you work with – social distance

• Static approach (based on structure)• Same department – department already a refiner for people

• Same leader

• Dynamic approach (based on actions)• Office graph

• Those you follow

• Cross boundaries

Page 7: Spca2014 social refiners svenson

First things first

• People search – change the model to get social distance• Default model will put a high emphasis on organization level

Page 8: Spca2014 social refiners svenson

Page Render Cycle

• Page renders

• Control/item template starts rendering• Loops over data

• Outputs HTML in DOM

• PostRender functions

• No control which web part renders first• How do you know if something is in the DOM?

Page 9: Spca2014 social refiners svenson

DEMO: Department refiner

• Explain logic• OR refiner using OOB functions

• Go over the code• Wrap output in function, render once JS is done

• Batch lookup department per author

• Map and render

• Issues with 2010 content, display name vs login

Page 10: Spca2014 social refiners svenson

DEMO: Documents by me / close

• Explain logic• Refiner which is not a refiner – no count

• Extend .js to allow FQL• Explain the road to discovery• Explain how the # works, over to query• .debug files• IE 2048 issue

• Show FQL

• Get user -> department -> colleagues• Alternative, use graph query + those you work with• Level 1 and level 2 colleagues?

Page 11: Spca2014 social refiners svenson

Improvements

• Caching could be an idea!

Page 12: Spca2014 social refiners svenson

Summary

If you don’t know which refiner to put on your page, try a social one so people can narrow down to content which are more likely useful to them based on social distance

Page 13: Spca2014 social refiners svenson
Page 14: Spca2014 social refiners svenson

Q & A