i attended the umbraco examine course & you won't believe what · i attended the umbraco...
TRANSCRIPT
![Page 1: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/1.jpg)
I attended the Umbraco Examine Course & you won't believe what happened next
![Page 2: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/2.jpg)
#CG18
Oh HAI !
![Page 3: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/3.jpg)
#NotJustTheFormsGuy
![Page 4: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/4.jpg)
Courses
![Page 5: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/5.jpg)
#CG18Lucene, Examine, huh?!
● LuceneThe underlying tech that allows us to do powerful searches & queries quickly
● ExamineThe .NET Library from Shannon that makes working with Lucene easier with a fluent API - ie easier to use & consume
![Page 6: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/6.jpg)
So what happened?
![Page 7: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/7.jpg)
I built a community map
![Page 8: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/8.jpg)
#CG18The basic flow
Google Map JS Makes WebAPI CallPerforms Examine
Query
API Returns JSONID, Avatar, Lat & Lon
Add markers to map
![Page 9: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/9.jpg)
#CG18Finding members with location data
ProblemIt’s not possible to search for members who have both Latitude & Longitude fields exist on the document.
SolutionUse Examine’s GatheringNodeData event to modify the Lucene document to dynamically add a new field that we can search for.
![Page 10: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/10.jpg)
#CG18Gathering Node Data - Example
![Page 11: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/11.jpg)
Query #CG18
![Page 12: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/12.jpg)
#CG18Too much data !
ProblemQuerying for all members will give us a GIANT JSON payload, thus adding all these markers/pins to the Google Map will be slooooow
SolutionSearch for members who are only visible on the current map view, by searching members lat & lon within a range & get only the data we need
![Page 13: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/13.jpg)
Finding members on the map
South WestLat: 50.700...Lon: -2.222...
Find members in range ofSouth West to North East
North EastLat: 52.408...Lon: 2.069...
![Page 14: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/14.jpg)
Store fields as doubles #CG18
![Page 15: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/15.jpg)
Store fields as doubles #CG18
![Page 16: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/16.jpg)
#CG18Range Search Query using Doubles
![Page 17: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/17.jpg)
#CG18Spam overload
ProblemAfter querying for members we still have loads of spam accounts or accounts that never post, skewing data on the map
SolutionFilter members by Karma; a point reward system on our.umbraco who have greater than 70 points and order API results by highest points
![Page 18: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/18.jpg)
#CG18Add sortable field
![Page 19: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/19.jpg)
Query #CG18
![Page 20: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/20.jpg)
#CG18Plant an idea
● Explore the possibilities of using Examine & Lucene for something more powerful than showing search results
● Open your mind there is always something new to learn
● Get on the courses & be inspired
![Page 21: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/21.jpg)
Thank you@warrenbuckley
#CG18
![Page 22: I attended the Umbraco Examine Course & you won't believe what · I attended the Umbraco Examine Course & you won't believe what happened next. #CG18 Oh HAI ! #NotJustTheFormsGuy](https://reader034.vdocument.in/reader034/viewer/2022042312/5edb5804ad6a402d6665843e/html5/thumbnails/22.jpg)
#CG18
Questions? 🙋