1 of 2
1
Searching Tags
Posted: 19 March 2008 06:53 AM   [ Ignore ]
Newbie
Rank
Total Posts:  5
Joined  2006-04-16

Is there any way to search tags using the built in EE search? I guess because they live in a separate table the EE search doesn’t see them. Is there any way to use a custom field to store the tags so they can be searchable? I don’t think I want to “harvest” them, because I’d rather they live in the custom field than the “Tag” tab?

Does that make sense?

Profile
 
 
Posted: 19 March 2008 06:56 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18
markhuot - 19 March 2008 06:53 AM

Is there any way to use a custom field to store the tags so they can be searchable? I don’t think I want to “harvest” them, because I’d rather they live in the custom field than the “Tag” tab?

You could do both....

If you really wanted this… a painful workaround would be to have your Tags in both a custom field, and the Tag Tab… I guess it would only be a copy/paste each time.... but I believe that would do it.

Harvesting does not remove the Tags from the custom field, it only copies them wink

 Signature 
Profile
 
 
Posted: 19 March 2008 08:10 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  5
Joined  2006-04-16
Pie Man - 19 March 2008 06:56 AM

Harvesting does not remove the Tags from the custom field, it only copies them wink

Sounds like a fun @cron@ job then? Nah, that’s way to dorky wink

What I think I may do is hack the Tag module a bit so that any tags added to the publish tab are also added to a hidden “meta” custom field. Then you get the best of both worlds. Does that make sense, sound doable?

Profile
 
 
Posted: 19 March 2008 08:14 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Mark,

No hacking needed.

Two choices here. Just use the native tag search functionality. Or get a copy of the Solspace Preparse extension. Whenever you save an entry, Preparse runs the contents of the entry through a template you specify and then saves the result in one of the custom fields of the entry that was edited. Super cool. Was written mainly to improve load times of sites.

Holler at Pie Man if you want to get at the extension. It’s pretty stable and might even be free for you if it keeps you from butchering my beloved Tag module.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 19 March 2008 08:19 AM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18
Mitchell Kimbrough - 19 March 2008 08:14 AM

Just use the native tag search functionality.

Was going to suggest, but it is limited to the extent that if some “regular” results show, the Tag Search doesn’t happen… wink
I guess I should have still suggested it… *doh*

Mitchell Kimbrough - 19 March 2008 08:14 AM

Or get a copy of the Solspace Preparse extension. Whenever you save an entry, Preparse runs the contents of the entry through a template you specify and then saves the result in one of the custom fields of the entry that was edited. Super cool. Was written mainly to improve load times of sites.

Holler at Pie Man if you want to get at the extension. It’s pretty stable and might even be free for you if it keeps you from butchering my beloved Tag module.

I wish I knew about this!! rasberry

 Signature 
Profile
 
 
Posted: 19 March 2008 08:29 AM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  5
Joined  2006-04-16
Mitchell Kimbrough - 19 March 2008 08:14 AM

Holler at Pie Man if you want to get at the extension. It’s pretty stable and might even be free for you if it keeps you from butchering my beloved Tag module.

I had a sneaky suspicion the word “hack” would pull you into this thread wink

Thanks Mitchell, I’ll certainly give that a whirl. And best of all it will take the load off Javascript which is huge for this particular client.

Profile
 
 
Posted: 06 June 2008 04:22 PM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  3
Joined  2008-06-06

I’m having trouble using the {exp:tag:search_results} tag in Tag 2.1.1. All I can get is one entry to display in my results. My results page code is something like this, as per the docs:

{exp:tag:search_results limit="20" where="any"}
content
{
/exp:tag:search_results}

I’m not displaying any “normal” search results in the template, just the tag results. I’m not sure if it makes any difference, but I’m using the EE simple search form to run the search (as opposed to the advanced form).

If using the Preparse extension would be a better option, I’d be interested in a link to where I might be able to get it.

Thanks.

Profile
 
 
Posted: 06 June 2008 04:33 PM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  3
Joined  2008-06-06

I’ve narrowed the problem down to an issue with my custom entry statuses. It looks like the tag search is ignoring the status parameter in the {exp:search:simple_form} tag. Therefore, any entry that isn’t set to “open” isn’t shown in the results.

Profile
 
 
Posted: 09 June 2008 07:48 AM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18
ztaylor - 06 June 2008 04:33 PM

I’ve narrowed the problem down to an issue with my custom entry statuses. It looks like the tag search is ignoring the status parameter in the {exp:search:simple_form} tag. Therefore, any entry that isn’t set to “open” isn’t shown in the results.

ztaylor,

Add the status="yourstatus1|yourstatus2|yourstatus3" to your {exp:tag:search_results} loop smile

{exp:tag:search_results where="any" tag_rank="clicks" limit="15" status="yourstatus1|yourstatus2|yourstatus3"}
<h2>{title}</h2>
<
p>{summary}</p>
{/exp:tag:search_results}

 Signature 
Profile
 
 
Posted: 09 June 2008 07:56 AM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  3
Joined  2008-06-06

Thanks...that makes a little sense. wink

Profile
 
 
Posted: 09 June 2008 08:06 AM   [ Ignore ]   [ # 10 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

haha, yep, they’re two different loops smile

 Signature 
Profile
 
 
Posted: 04 October 2008 09:15 AM   [ Ignore ]   [ # 11 ]
Newbie
Rank
Total Posts:  1
Joined  2008-01-10
Mitchell Kimbrough - 19 March 2008 08:14 AM

Mark,

No hacking needed.

Two choices here. Just use the native tag search functionality. Or get a copy of the Solspace Preparse extension. Whenever you save an entry, Preparse runs the contents of the entry through a template you specify and then saves the result in one of the custom fields of the entry that was edited. Super cool. Was written mainly to improve load times of sites.

Holler at Pie Man if you want to get at the extension. It’s pretty stable and might even be free for you if it keeps you from butchering my beloved Tag module.

mk

Hi. Is the Preparse extension available? My clients are distressed that they cannot search their Tags. Thanks.

Profile
 
 
Posted: 04 October 2008 09:24 AM   [ Ignore ]   [ # 12 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

spacewalk,

Check your email smile

 Signature 
Profile
 
 
Posted: 30 October 2008 02:15 PM   [ Ignore ]   [ # 13 ]
Jr. Member
RankRank
Total Posts:  33
Joined  2006-12-12

Hullo… another request here for the Preparse extension...(the name makes it sound awesome). I have the very same request from my client… they want the standard search to return results based on tags… TIA!

Profile
 
 
Posted: 30 October 2008 09:26 PM   [ Ignore ]   [ # 14 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Hi Nathan,

Send me an email to kelsey AT solspace.com smile

 Signature 
Profile
 
 
Posted: 12 November 2008 08:38 AM   [ Ignore ]   [ # 15 ]
Newbie
Rank
Total Posts:  2
Joined  2008-10-30

Hi there,

I’m in dire need of this as well after a few failed attempts at searching tags directly (easy) and then passing the corresponding entries to EE weblog:entries output (not so much). Could I get a copy?

Thanks!
Mark

Profile
 
 
   
1 of 2
1