Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Searchable custom fields
It’s all in the title
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Searchable custom fields
yes.. this is a very important one to have.
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: Searchable custom fields
Offline
#4 2005-10-30 22:41:16
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Searchable custom fields
Won’t be supported in the core with custom fields in their present form, because it’s simply too slow.
Alex
Offline
#5 2005-10-31 17:23:10
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: Searchable custom fields
Yeah, I can see where a search on all TXP custom fields could become sluggish. Maybe have an admin-side option to search optional, user-defined custom fields limited to only two of the fields? I suppose this could be implemented as a plugin (unsure of the admin-side option, however).
Offline
#6 2005-10-31 22:52:49
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Searchable custom fields
Even limited to a few fields, “sluggish” is an understatement – I’ve seen a 10×-20x difference in search times.
Alex
Offline
#7 2005-11-02 17:31:11
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: Searchable custom fields
Wow. Bummer.
Offline
Re: Searchable custom fields
:(
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#9 2006-12-23 19:39:05
- tore
- Member
- From: Tväråmark, Sweden
- Registered: 2006-11-08
- Posts: 26
Re: Searchable custom fields
There is a general, a little otside that common custom-fields-wish, wish that should be considerer though (at least in my view …).
Consider an article collection in any professional or whatever environment where knowledge is amended through comments submitted now and then subsequently but also to former articles.
Isn’t it self-evident that a simple search for a keyword like, for example, “lodgepole”, should search the articles and also the comments collections? I should assume that this functionality should be built-in at the very beginning in a system that is designed for such use as indicated. Is TXP suitable for such use? Well, it is, to a great extent, but that (simple) integrated article-comment search isn’t possible.
Now there are (rather simple) means to extend searching for other than the Title and Body fields if they are present in the Textpattern main table. The comments are, however, linked from another table (txp_discuss, I presume) and not so easy to include in case you haven’t much SQL skill and TXP basic knowledge and/or plugin experience.
Thus, I suggest that an integrated article-comment search should be considered as a basic function, or att least an article-comment search where the articles and the comments could be searched one after another.
To consider for implementation: 1. At least search articles and present result, then search comments and present additional results. 2. Like 1. and then also merge the results. (Of course, “article” should include both Title and Body.)
1. should take like double time compared to present article-only search.(?)
2. may be carried out on less then three times as long, possibly through a temporary table setup?
Of course all excellent tools have some weak point. Searching for this search facility in all TXP webtexts has made me suspect that this is Textpattern’s!? But I’m little experienced in the DB/TXP technology and may be wrong out on some topics or missed something, if so please tell me, developers!
Last edited by tore (2006-12-23 19:42:19)
Offline
Re: Searchable custom fields
I know that txp does not search in custom_fields or the keywords field right now.
Could someone more in the know tell me if crockery has this?
Offline
#11 2006-12-24 00:09:36
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Searchable custom fields
…crockery has this?
Nope.
Offline
Re: Searchable custom fields
zem wrote:
Even limited to a few fields, “sluggish” is an understatement – I’ve seen a 10×-20x difference in search times.
Still, might not be an issue for a lot of people. It’s a search tool, if it takes a little time it’s supposed to be ok. Is there an appropriate hook (is this plugin-feasible) ?
Offline
Re: Searchable custom fields
what if the custom fields are only searched in an “advanced search” interface? Within this interface there could also be searches for all db fields which can be used on the front end. ie image caption, image title, links description, link title etc… I know that this is not the official ‘request’ but I believe that an advanced search which will be made available only by sites which need it might be a way to go…
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#14 2006-12-28 08:26:17
- tore
- Member
- From: Tväråmark, Sweden
- Registered: 2006-11-08
- Posts: 26
Re: Searchable custom fields
Do you include ‘comments’ when you talk about potentially searchable ‘custom fields’? Should be most important to include as a simple extension of any simple article search!
P.S. Perhaps a simplification: It wold be nice if just a message like “Found in comment(s) link-to-comment …” is displayed in/as the search result in case this would facilitate designing a search with comments included. Then, at the comment, the clever user may use a simple browser search.
P.S. 2007-01-15 Seems that nobody else care about searching comments…? Is this a non-issue?
Last edited by tore (2007-01-15 20:48:30)
Offline
Re: Searchable custom fields
Turbo-G wrote:
Turbo-G, thanks a lot! It was easy to get this hack to work for Keywords instead of custom fields. This is exactly what I needed, since I’m using tru_tags to transform the Keywords field into tags.
Offline