Search Options
close
Search the following clips:
All Clips
news
science
politics
food
economy
art
technology
health
internet
religion
psychology
Sign Up
Install
Learn More
Login
Django full-text indexing with Djapian
ylodi
follow
0
2-19-2008 5:06 AM
665 views
tags:
django
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
It's always the woman holding you back
Pet Tarantula makes eye contact with owner
Wacky Winter Weather
Humans 'Have Six-hour Window' to Erase Memories of Fear
Men and sex: nature or excuse?
Cute yawning animals
Global Warming Nonsense Coming to an End
Kseniya Simonova - Sand Animation - Absolutely beautiful, must see
This Back Flip Attempt Never Had A Chance [GIF]
The Most Underreported Stories of 2009
visit the
Top Clips page
View the Top Clips from
February 19, 2008
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/ac3aabc5-ec69-426c-a033-7da806a7e45f/64A651D6-DE4E-4787-A992-5294BF8B2649/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://net-x.org/weblog/2008/feb/18/django-full-text-indexing-djapian/" href="http://net-x.org/weblog/2008/feb/18/django-full-text-indexing-djapian/" style="font-size: 11px;">net-x.org</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://net-x.org/weblog/2008/feb/18/django-full-text-indexing-djapian/"><H2>Django full-text indexing with Djapian</H2></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://net-x.org/weblog/2008/feb/18/django-full-text-indexing-djapian/"><P>I recently stumbled across the <A title="djapian" href="http://code.google.com/p/djapian/">djapian</A> project over at google code. I've been looking for a full-text indexer for Django for quite a while but hadn't found anything that I felt did what I wanted. The dead search-branch in Django's repository was so tempting but incomplete. I noticed the <A title="django-sphinx" href="http://code.google.com/p/django-sphinx/">django-sphinx</A> project during my initial searching months ago but what I felt it was lacking (which was a deal breaker for me) is the ability to search across multiple models. Djapian, however, has the ability to do just this. What I ultimatley wanted to be able to do was something like this: </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://net-x.org/weblog/2008/feb/18/django-full-text-indexing-djapian/"><PRE><CODE>>>> from search import indexer >>> search = indexer.search('some search term') >>> search.count() 2 >>> result = search[0] >>> result.score 100 >>> for result in search: ... result.get_object() ... <Page: /about/ -- About Us> <Entry: College Newspaper Fights Takeover by Newspaper Chain> </CODE></PRE></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/64A651D6-DE4E-4787-A992-5294BF8B2649/blog/" title="blog or email this clip"><img src="http://content8.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK