Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-09-09 20:10:58

smallt
Member
Registered: 2004-12-21
Posts: 26

Textpattern Internal Search Index

Am I missing something or does the Textpattern not include “keywords” associated with each article in the internal search index? Anyone know how to make it do so?

Offline

#2 2008-09-09 22:19:12

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Textpattern Internal Search Index

Search includes only the title and body of articles. To include other stuff, you’d have to modify the relevant query in /textpattern/publish.php and create a new index (or change the existing one) for the textpattern table, so it includes all three instead of just body+title.

Offline

#3 2008-09-09 23:24:58

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Textpattern Internal Search Index

You can make TXP search custom fields with the help of these instructions (there’s an English translation below). I think exchanging custom_1 for Keywords should do th etrick.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#4 2008-09-10 03:18:07

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: Textpattern Internal Search Index

any chance this can become pluggable or extensible so we can have plugins and not require edits to the core?

Offline

#5 2008-09-10 12:03:55

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Textpattern Internal Search Index

No, because if we at some point want to be able to have unlimited custom fields or categories, those will be stored in a separate table, which would require a totally different method of searching if you’d want to include them in the search.

Offline

#6 2008-09-10 13:22:50

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: Textpattern Internal Search Index

ruud wrote:

No, because if we at some point want to be able to have unlimited custom fields or categories…

Ah, so that’s in the pipe then…that “unlimited” bit. :)

Offline

#7 2008-09-10 16:30:46

smallt
Member
Registered: 2004-12-21
Posts: 26

Re: Textpattern Internal Search Index

hmmm. Thanks all. I will give the mod a shot and report back

Offline

Board footer

Powered by FluxBB