• sicksin
  • casey
  • xombie
  • madwag
  • wannabehippie
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

September 02 2010

casey
06:47

Faceted search

Have I mentioned how much I love the Sphinx search engine?

I think that I have.

I want to talk about how I used Sphinx to create a new faceted search for Ravelry but I don’t really know where to begin. I’m was happy while working on it and I’m happy with the result. Sphinx itself performs amazingly and that amount of code needed to make it all work is pretty small and very sensible. It’s really surprising how many ways you can take advantage of what it has to offer - someone should really write a “Sphinx Recipes” book.

I’m pretty sure that I spent more time on Javascript micro-optimization than I did on Sphinx performance optimization… but that’s a topic for another day. (Like.. the facet counts that you see are inside of transparent, disabled form fields because updating their values was waaaay faster in IE)

For now, here is a video. It was made to introduce the features to Ravelers so it doesn’t point out any of the technical things that I’d like to show. It’s just a little peek that gives you some idea of what can be done with Sphinx beyond plain old full text search. Sphinx is handling the full text search, the filtering by facet, the computing of counts in each facet, and the selection of results. Pretty much everything other than pulling the data to display the photos and names. All of the work is done in a single call to Sphinx - one query “batch”.

Ravelry Search Help from Ravelry on Vimeo.

One more neat thing: Here is one of the facets in the people search. Sphinx knows how to calculate geodistance so given a search, it can create a facet by grouping results by distance from some point…and it does it fast.

Tags: Database
sicksin
05:33
3209_7a9e_500
Reposted fromMadMaid MadMaid viaopalodefuego opalodefuego
sicksin
05:32
9224_74b9
Reposted frompornoise pornoise viamelovespot melovespot
sicksin
05:31
2549_7729
Ein weiterer Favorit :-) B**l*f**d ?1?!?elf
Reposted fromf4m8 f4m8 viajotbe jotbe
sicksin
05:29
Reposted fromyetzt yetzt viaFreXxX FreXxX
sicksin
05:28
sicksin
05:28
Reposted fromthespiritof69 thespiritof69 viaFreXxX FreXxX
sicksin
05:28
5773_31d2_500
Indeed.
Reposted fromalter-ego alter-ego viaFreXxX FreXxX
sicksin
05:28
0304_2ae0_500
Reposted fromfasel fasel viaFreXxX FreXxX
sicksin
05:27
RTL ? WTF?
Reposted fromWizardcat Wizardcat viaFreXxX FreXxX
sicksin
05:27
Reposted fromdeepthought deepthought viaFreXxX FreXxX
sicksin
05:27
sicksin
05:26
Reposted fromoptixx optixx viaFreXxX FreXxX
sicksin
05:26
Reposted fromvol vol viaFreXxX FreXxX
sicksin
05:26
3305_1da7
Reposted fromhirngulasch hirngulasch viaFreXxX FreXxX
sicksin
05:26
sicksin
05:26
clubdelalose: Jules et Jim (big fun)


clubdelalose:

Jules et Jim

Reposted fromsexnotsex sexnotsex
sicksin
05:26
Reposted fromHeadbanger Headbanger viaFreXxX FreXxX
sicksin
05:26
Reposted fromHeadbanger Headbanger viaFreXxX FreXxX
sicksin
05:25
Reposted fromDoggieSmile DoggieSmile viaFreXxX FreXxX
Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.