Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

Local Searches

I don’t use PHP for my site, but I do have it and obviously run Mint on it. My question is, since my app is not in PHP, how can I log local searches? I don’t use the “GET” method, I use “POST.”

Shaun Inman
Mint/Pepper Developer
Posted on Mar 07, '07 at 05:14 pm

You don’t need to use PHP as long as the Mint JavaScript include is on your search results page and the query string appears in the url. This mean you must use the GET method. Otherwise, there’s no way to detect which search terms were used.

Shaun, I don’t use the GET method on my search form for my application. I do however record my site searches in my own DB, so is there a way to link the two up, or at the time that the search is done, use my app to update mint records?

Galen
Minted
Posted on Mar 15, '07 at 01:14 pm

I imagine you can just connect to your search DB in the pepper and populate the panel table with results from that.

GTNman
Minted
Posted on Jun 07, '07 at 05:06 pm

ok, not 100% sure but my search result page URL is formulated as such.

`http://www.greatertalent.com/search_results.php?keywords=svu&Submit.x=0&Submit.y=0&Submit=Submit`

i have tried the following w/ no avail.

path: /search_results.php

query: /search_results.php?keywords=Mint

is this formed properly?

I know that the get method is used. Any help would be much appreciated.

Shaun Inman
Mint/Pepper Developer
Posted on Jun 08, '07 at 09:57 am

No, query should be just ‘keywords’ in your case.

GTNman
Minted
Posted on Jun 08, '07 at 12:08 pm

path: /search_results.php

query: /search_results.php?keywords=

as such is in my config for the pepper however no data is ever registered there.

Any ideas?

Shaun Inman
Mint/Pepper Developer
Posted on Jun 08, '07 at 12:53 pm

No.

Path: /search_results.php
Query: keywords

Just ‘keywords’, don’t repeat the path in the query input.

GTNman
Minted
Posted on Jun 08, '07 at 01:27 pm

Ok, I changed it to just ‘keywords’ and I ran some queries on my site and no stats came up. Should it be instant or will it take a little bit to show?

GTNman
Minted
Posted on Jun 08, '07 at 04:55 pm

Not to worry, they finally started populating about 10 minutes after I posted the previous message.

Thanks again.

I use a subdomain, not a path, for my searches. http://find.elliottcable.name/foobar

Could Local Searches be updated to work with this?

I’ve seen else where that you don’t plan to support restful URIs in Local Searches; I can easily change this format to http://find.elliottcable.name/?find=foobar; but it still doesn’t support subdomains instead of paths. Could you do that much, at least?

Thanks! [-:

You must be logged in to reply. Login above or create an account