Announcement

Collapse
No announcement yet.

used search terms

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    used search terms

    Power Search had a feature that allowed is to see what people had searched for and how many results they received. It was extremely useful to learn how people misspelled things among other things...
    Mark Hood
    Vermont Gear

    #2
    True, but this is pretty easy to do by just logging requests on the search via SMT. In the global footer, have something like this:
    Code:
    <mvt:if expr="g.search">
    
       <mvt:assign name="g.thisLine" value="g.date$'|'$s.remote_addr$'|'g.search$g.crlf"/>
    
       <mvt:if expr="fexists('searchLog.log')">
          <mvt:assign name="g.fileAppend" value="file_append('searchLog.log', 'data', g.thisLine )"/>
       <mvt:else>
          <mvt:assign name="g.fileCreate" value="file_create('searchLog.log', 'data', g.thisLine)"/>
       </mvt:if>
    </mvt:if>
    (Obviously, I have predefined globals in there)

    And then just make a page where this data is called in so you can view it.

    But it would be nice to have a reporting system that would let you do things like sort, count words, etc. Also, this doesn't include the search results returned in the JS search popup, though one could probably code that up as well.
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
    phosphormedia.com

    Comment

    Working...
    X