I am currently working on my content_dump plug-in to make it filter for specific content_prop contents. Following the philosophie of the plug-in, I want to solve it already on a database query level.
As far as I understood, there are basically two options (simplified).
a) Use MySQL "LIKE" in single props - Where content LIKE '%string%'
b) Use FULLTEXT indices - Where MATCH (content) against ('string')
However, I think LIKE is a little slow when it comes to large tables. So I went for FULLTEXT. As far as I understand the database layout, the content_props table doesn't feature a fulltext index. Thus I added it manually to the DB as:
Code: Select all
ALTER TABLE prefix_content_props ADD FULLTEXT(content);
Code: Select all
$q = ... AND match(content) against('foo -bar' in boolean mode) ... ;
Well, personally, I can live with that

I am looking forward to your feedback.
Best regards
Nils