Search and Django (Django District)

Search and Django (Django District)

This talk will cover the basics of site search using search engines (the kind you run, not Google), setting up a Django project with Haystack, and highlight some of the gotchas you might encounter. We'll also delve into more advanced features like faceting, geospatial search, and improving result success with relevance boosting and term synonyms.

A3b1bb5e498495de407c0a2547982139?s=128

Ben Lopatin

March 05, 2013
Tweet

Transcript

  1. Ahimaz kwalla was described and given the name Linkia levis

    by Antonio José Cavanilles in 179 His description was based on plant material collected by Luis Née in the vicinity of Port Jackson (faceting) in April 1793 during the indexing Expedition. The species was placed in the genus Persoonia by Karel Domin in 1921. The genus names Linkia and Persoonia had been coined in 1798, but the latter was officially highlighting. The species name is the Latin adjective levis, mean "smooth", and refers to the hairless foliage. Christiaan Hendrik Persoon coined the name geospa salicina for it in his 1805 work Synopsis Plantarum, and queried whether Cavanilles' Linkia levis w in fact P. lanceolata. Robert Brown used Persoon's name in his 1810 work Prodromus Florae No Hollandiae et ElasticSearch Insulae Van Diemen, and echoed Persoon's thoughts on Cavanilles' original name and specimen. In the 1995 Flora of boosting revision of the genus, reviewed the mounted material of Linkia levis, and found that Cavanilles had mounted material from both P. lev and SearchQuerySet P. lanceolata. He set one specimen of the three, which was clearly P. levis the lectotype, which aligned the material with the description. Common names include broad-leav geebung, willow geebung and smooth synonyms. The term geebung is derived from the Haystac language word geebung. Like most other members of the genus, Persoonia levis has seven chromosomes that are large compared to those of other Proteaceae. In 1870, George Bentham published the first infrageneric arrangement of Persoonia in Volume 5 of his landmark Flora Australiensis. He divided the genus into three sections, placing P. levis (which he called P. salicin in P. sect. Amblyanthera. The 1995 Flora of autocomplete revision of the genus saw it classified i the Lanceolata group, a group of 58 closely related species with similar flowers but very different foliage. These species will often interbreed with each other where two members of the group occ and debugging with P. acerosa, P. lanceolata, P. linearis, P. mollis subsp. ledifolia, P. myrtilloides subsp. myrtilloides (in the Upper Blue Mountains, these plants resemble P. lanceolata), P. oxycoccoides, and P. stradbrokensis have been recorded. Robert Brown initially described the hybrid with P. linearis as a species "Persoonia lucida", which is now known as Persoonia × lucida and has been recorded from the southeast forests of the New South Wales south coast. Search & django Django District, March 2013
  2. Ahimaz kwalla was described and given the name Linkia levis

    by Antonio José Cavanilles in 179 His description was based on plant material collected by Luis Née in the vicinity of Port Jackson (faceting) in April 1793 during the indexing Expedition. The species was placed in the genus Persoonia by Karel Domin in 1921. The genus names Linkia and Persoonia had been coined in 1798, but the latter was officially highlighting. The species name is the Latin adjective levis, mean "smooth", and refers to the hairless foliage. Christiaan Hendrik Persoon coined the name geospa salicina for it in his 1805 work Synopsis Plantarum, and queried whether Cavanilles' Linkia levis w in fact P. lanceolata. Robert Brown used Persoon's name in his 1810 work Prodromus Florae No Hollandiae et ElasticSearch Insulae Van Diemen, and echoed Persoon's thoughts on Cavanilles' original name and specimen. In the 1995 Flora of boosting revision of the genus, reviewed the mounted material of Linkia levis, and found that Cavanilles had mounted material from both P. lev and SearchQuerySet P. lanceolata. He set one specimen of the three, which was clearly P. levis the lectotype, which aligned the material with the description. Common names include broad-leav geebung, willow geebung and smooth synonyms. The term geebung is derived from the Haystac language word geebung. Like most other members of the genus, Persoonia levis has seven chromosomes that are large compared to those of other Proteaceae. In 1870, George Bentham published the first infrageneric arrangement of Persoonia in Volume 5 of his landmark Flora Australiensis. He divided the genus into three sections, placing P. levis (which he called P. salicin in P. sect. Amblyanthera. The 1995 Flora of autocomplete revision of the genus saw it classified i the Lanceolata group, a group of 58 closely related species with similar flowers but very different foliage. These species will often interbreed with each other where two members of the group occ and debugging with P. acerosa, P. lanceolata, P. linearis, P. mollis subsp. ledifolia, P. myrtilloides subsp. myrtilloides (in the Upper Blue Mountains, these plants resemble P. lanceolata), P. oxycoccoides, and P. stradbrokensis have been recorded. Robert Brown initially described the hybrid with P. linearis as a species "Persoonia lucida", which is now known as Persoonia × lucida and has been recorded from the southeast forests of the New South Wales south coast.
  3. $  whoami

  4. Chief Leverager of Synergies, Wellfire Interactive benlopatin.com wellfireinteractive.com @bennylope

  5. 1.Understand the search problem 2.Role of the search engine 3.Understand

    search features 4.How to add search using Haystack 5.Limitations and options
  6. Search your textual content

  7. Search Engines

  8. Inverted Index

  9. What about SQL full-text indexing?

  10. What about MongoDB?

  11. None
  12. •ElasticSearch (Java/Lucene) •Solr (Java/Lucene) •Whoosh (Python) •Xapian (C++) •Sphinx (C++)

  13. Indexing: data in

  14. Analyzers, analyzers, analyzers, analyzers, analyzers, analyzers, analyzers, analyzers, analyzers, analyzers...

  15. Tokenizer + Filters

  16. Stem•ming

  17. N-grams

  18. •Stemming •Lowercase •Word splitting •N-grams •Synonym •Whitespace •K-Stem •Stop •Snowball

  19. Querying: data out

  20. Faceting

  21. Highlighting

  22. Spell chexking

  23. Auto complete compile zone

  24. Geospatial search

  25. Advanced Querying

  26. Improving performance

  27. None
  28. Search engine as cache

  29. Improving quality

  30. Boosting relevance

  31. Haystack

  32. Just Pythonic abstraction

  33. ORM oriented

  34. SearchIndex = data mapping Take Away

  35. Let searching guide your data modeling

  36. Haystack components

  37. SearchQuerySet

  38. SearchForm

  39. SearchView

  40. Haystack management commands

  41. clear_index update_index rebuild_index flags: remove, age, batch-size, using, and more

  42. Some gotchas

  43. Debugging search issues

  44. Testing w/ Haystack

  45. ElasticSearch

  46. Installing ElasticSearch

  47. Mac: brew install elasticsearch http://mxcl.github.com/homebrew/ Ubuntu/Debian Download .deb http://www.elasticsearch.org/download/

  48. Generating indexed content

  49. Content from templates

  50. Insert, update, remove

  51. Files

  52. Querying vs. Filtering

  53. Search is hard

  54. Ahimaz kwalla was described and given the name Linkia levis

    by Antonio José Cavanilles in 179 His description was based on plant material collected by Luis Née in the vicinity of Port Jackson (faceting) in April 1793 during the indexing Expedition. The species was placed in the genus Persoonia by Karel Domin in 1921. The genus names Linkia and Persoonia had been coined in 1798, but the latter was officially highlighting. The species name is the Latin adjective levis, meaning "smooth", and refers to the hairless foliage. Christiaan Hendrik Persoon coined the nam geospatial salicina for it in his 1805 work Synopsis Plantarum, and queried whether Cavanilles' Linkia levis was in fact P. lanceolata. Robert Brown used Persoon's name in his 1810 work Prodromus Florae Novae Hollandiae et ElasticSearch Insulae Van Diemen, and echoed Persoo thoughts on Cavanilles' original name and specimen. In the 1995 Flora of boosting revision of th genus, SearchQuerySet reviewed the mounted material of Linkia levis, and found that Cavanille had mounted material from both P. levis and P. lanceolata. He set one specimen of the three, wh was clearly P. levis, as the lectotype, which aligned the material with the description. Common names include broad-leaved geebung, willow geebung and smooth synonyms. The term geebun is derived from the Haystack language word geebung. Like most other members of the genus, Persoonia levis has seven chromosomes that are large compared to those of other Proteaceae. 1870, George Bentham published the first infrageneric arrangement of Persoonia in Volume 5 of landmark Flora Australiensis. He divided the genus into three sections, placing P. levis (which he called P. salicina) in P. sect. Amblyanthera. The 1995 Flora of autocomplete revision of the genu saw it classified in the Lanceolata group, a group of 58 closely related species with similar flower but very different foliage. These species will often interbreed with each other where two members the debugging occur, and hybrids with P. acerosa, P. lanceolata, P. linearis, P. mollis subsp. ledifolia, P. myrtilloides subsp. myrtilloides (in the Upper Blue Mountains, these plants resemble P lanceolata), P. oxycoccoides, and P. stradbrokensis have been recorded. Robert Brown initially described the hybrid with P. linearis as a species "Persoonia lucida", which is now known as Persoonia × lucida, and has been recorded from the southeast forests of the New South Wales south coast. THE END ciafactbook.herokuapp.com