Help - Search - Members - Calendar
Full Version: RELEASED: Search software for MT
Movable Type Community Forum > Additional Resources > Tips and Tricks
notfully
I just posted a comment on your mt-search site, but didn't know where you wanted questions about your wonderful product directed.  I got everything set up smoothly, but wondered this (the direct comment I left at mt-search):

QUOTE
My preferred archive type is set to "Monthly". Is there a way to link the title of the result to the post on the month page? I've tried <$MTEntryLink$>#<$MTEntryID pad="1"$>, instead of simply <$MTEntryLink$>, which takes you to the top of the monthly archive page the result is located on, but direct link doesn't seem to work. Any hints?
fooljay
It's a bug...  I found the problem.  If you want to fix it now instead of waiting for the next release you can search extlib/MT/Mods/Search.pm around line 348 for:
CODE
$result_data{'MTENTRYLINK'} = $blog->archive_url . $sep . $entry->archive_file;

and change it to:
CODE
$result_data{'MTENTRYLINK'} = $blog->archive_url . $sep .
$entry->archive_file . '#' . (sprintf "%06d", $entry->id);

That should take care of the problem.
Emerald Sky
Jay - just wanted to let you know the reason I was having troubles yesterday was the perl path.  I had to take out /local

I got it uploaded today... now to play.  :D
girlie
What is the preferred method for modifying default.tmpl?

I linked the file to a new MT template module, thinking that would be the easiest way to edit it. However, after making changes, I attempted to refresh mt-search.cgi in my browser, and it just seemed to hang without ever reproducing the page.

When I reuploaded the original default.tmpl, it worked fine again.

I'm not sure if my coding is at fault, although I basically copied another template I'm already using, then repositioned the relevant code already present in default.tmpl.

And one other question: should the part of the form code:

CODE
action="mt-search.cgi"


be modified thusly:

CODE
action="<MTCGIPath>mt-search.cgi"


?
Rich
Bostich - yes and no. It worked fine on my win2k development server, but when I uploaded it to my win2k host, it returns no results. My development machine database has only one blog while the host has several, maybe that is confusing it - don't know.
kd_
I have installed this on MT v2.11, and even using the default templates, when any of the advanced search options are used, it returns two lists, one of which has .html extensions. there is nothing in my site that's ever used .html extensions, it's all .php.

Nothing in my configuration has .html in it. The post numbers it returns are correct, just the extensions are wrong.
aroundmyroom
KD,

look up in the thread, the solution is there. I tried it at AroundMyRoom and working fine.

Reading is the most difficult thing in life ;-)

It's even better then Perlfect search. Cause the mt-search engine only looks in the blog and displays entries correctly.

Ben,
Is this likely to be implemented by default or is this just a 'plugin-feature?'
fooljay
MT-Search v1.2 has been released.  Be the first kid on your block to own a Moveable Type Search engine!
fooljay
I'm headed out for the night, but I'll look into it when I get back.  I'm thinking that that's something I hadn't taken into account, and hence either classified as a bug or a missing feature...

I'll get back to you.
notfully
Yep!  That got it.  Thanks for your help.
fooljay
Ahhh shoot.  I forgot to change that back before shipping...  I have to add the /local on every MT cgi when I upgrade...

What this means is that the first line of mt-search.cgi says:
CODE
#!/usr/local/bin/perl

If your path to Perl is not /usr/local/bin/perl, then you need to change that to reflect the one true path.
Bostich
Anyone have trouble with this on NT?  It seems to run fine, but it always returns no results ??

my cgi-bin is outside the web directory.  MT's search works.

Hrm.. now I'm getting (sometimes):

Use of uninitialized value in substitution (s///) at C:\cgi-bin\mt\mt-search.cgi line 37. Use of uninitialized value in substitution (s///) at C:\cgi-bin\mt\mt-search.cgi line 38. Use of uninitialized value in quotemeta at C:\cgi-bin\mt\extlib/MT/Mods/Search.pm line 201. Use of uninitialized value in pattern match (m//) at C:\cgi-bin\mt\mt-search.cgi line 48.
OliverH
Hi,

how can I configure the mt-search script to search not only the entries, but also the excerpts of every entry?


Best regards from Iceland,
Oliver
kd_
i have been experimenting around and one thing that would fix this would be if there was the <$MTEntryID$> tag available in the search templates, so that i could force the extensions.
SpeedStick
Hey,

The search engine is working fine for me, but there's one thing I'd really like to figure out how to do.  Is it possible to include MT template modules in the search template.

For example I put this is in -
< $MTInclude module="Header"$ >
- so the search results would look just like the rest of my site, but it doesn't work.  Does anybody know how to successfully do this?

I'd really appreciate some help.

Thank you very much.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.