Textpattern Forum

You are not logged in. Register | Login | Help

#1 2012-05-08 12:39:55

fantasmo
Member
Registered: 2010-05-05
Posts: 40

[request] faceted search

I was wondering, if it would be possible to build a “faceted search” with txp.
A search, where I can check several attributes and so get very specialized search results.

I didn’t find a plugin, so it would be great to have one. Or how is it possible to build this in txp?

Offline

#2 2012-05-08 15:54:42

stephan
Plugin Author
From: Bochum, Germany
Registered: 2004-07-26
Posts: 196
Website

Re: [request] faceted search

Search will severly impact performance. If you have so much data that you really benefit from a (faceted) search I’d recommend bringing in a solution like solr that will make search more fun.
A simple plugin will always be very intense on the database, I would assume.


Yoko for Textpattern – A free blog themeMinimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often

Offline

#3 2012-05-09 08:20:41

fantasmo
Member
Registered: 2010-05-05
Posts: 40

Re: [request] faceted search

Ok, I will have a look at that…though I am not a web development pro;-) …I thought an easy plugin would be great. I don’t have that much data, but I thought I could use a faceted search for my portfolio website.

So people could see my projects not by clicking and searching categories of a blog menue, but by clicking checkboxes…like I have a big wall with ALL of my projects (instead of a menue with categories e.g. “web projects” “video projects” to click through) and the presented projects will be filtered based on which check boxes are clicked, like checked are “video” and “sports”…that would show all videos that deal with sports…or “video” and “grocery” that will show all videos dealing with grocery business…mh..something like this, a detailed filter function instead of navigation with cateogries and sub categories.

A faceted search used as a new kind of user friendly navigation, I believe that’s what I am looking for.

Offline

#4 2012-05-09 08:40:02

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,980
Website

Re: [request] faceted search

fantasmo wrote:

a detailed filter function instead of navigation with cateogries and sub categories.

An alternative to search might be to use tagging. If you tag your content then you can extract all the tags and present them as a cloud, list, whatever. Each time a user clicks on one you can add it to the URL and set the Page template up so it filters by all currently in-force tags.

To do that you’ll need the latest beta smd_tags, which I’m confident is pretty much the final beta before official release, as the issues have dropped to near zero in recent weeks. It allows URLS like this:

site.com/search/tag1/tag2/tag3/tag4/...

and you can configure it such that ‘/’ is the delimiter which means “AND”, i.e. “only show items that have tag1 AND tag2 AND tag3…”. You may also do OR searches, but you’ll have to use a different delimiter.

I’ve never actually done it on a live site, but that’s what it was designed for so I’d love to see someone actually make this in the wild. I suspect the URL wrangling is going to be the hardest part of the equation: adding or removing a tag from the URL. I’d like to make this bit easier with the plugin itself actually so if you do decide to try it and get stuck or find it harder than it should be, I’ll see what I can do to help out.

Last edited by Bloke (2012-05-09 08:42:02)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2012-05-10 07:29:28

fantasmo
Member
Registered: 2010-05-05
Posts: 40

Re: [request] faceted search

Bloke wrote:
……………………
I suspect the URL wrangling is going to be the hardest part of the equation: adding or removing a tag from the URL. I’d like to make this bit
easier with the plugin itself actually so if you do decide to try it and get stuck or find it harder than it should be, I’ll see what I can do to help out.
……………………

That sounds a little bit complicated (maybe because I am not a native english speaker ;-) …and I am not a coding/development pro)…but I know what you mean… first I also thought about something that is based on tags… I will definetly try your recommendation!

Offline

#6 2012-05-11 21:20:39

etc
Plugin Author
Registered: 2010-11-11
Posts: 1,267
Website

Re: [request] faceted search

You could be interested by this post.


etc_[ query | search | pagination | date | tree | url ]

Offline

Board footer

Powered by FluxBB