Announcement

Collapse
No announcement yet.

Getting Powersearch to Run Rebuild Automatically

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

    Getting Powersearch to Run Rebuild Automatically

    Dear Miva Masters,

    I am trying to follow Weiland's instructions here

    http://www.emporiumplus.com/v5/pscron.txt

    regarding setting up powersearch as a cron. I am trying to use the method wherin the system calls a URL. This simply is not working at all and I'm really frustrated and confused as I followed the instructions with great care.

    I created a page called PSREBUILD with the following content

    Code:
    <mvt:if expr="g.runps EQ '123'"><mvt:item name="toolkit" param="sassign|powrsrch_rebuild|400" />
    <mvt:item name="toolkit" param="sassign|powrsrch_fulltext|name,descrip" />
    <mvt:item name="toolkit" param="sassign|send2email|" />
    <mvt:item name="powrsrch" param="rebuild" />
    <mvt:if expr="g.pscron_continue">
    	<mvt:item name="toolkit" param="sassign|newurl|http://www.geographicus.com/mm5/merchant.mvc?Screen=PSREBUILD?runps=123%querystring%" />
    	<mvt:item name="toolkit" param="vglosub|g.newurl,%querystring%,g.PSQueryString" />
    	<mvt:item name="toolkit" param="headeroutput|Status|301 Moved Permanently" /> 
    	<mvt:item name="toolkit" param="vheaderoutput|Location|g.newurl" /> 
    </mvt:if>
    </mvt:if>
    The items TOOLKIT and POWERSEARCH are active on his page.

    The first step is trying to make it work with a URL. This URL doesn't do anything

    http://www.geographicus.com/mm5/merc...UILD&runps=123

    Can anyone offer some advice on this matter?

    Thank you,

    Kevin
    __________________________
    GEOGRAPHIUCS ANTIQUE MAPS
    923 Putnam Ave
    Brooklyn,NY 11221
    TEL: 646-320-8650
    www.GEOGRAPHICUS.com

    #2
    Re: Getting Powersearch to Run Rebuild Automatically

    When you run the rebuild manually from admin, are you checking the box that says "Turbo rebuild"?

    How many products do you have?
    Last edited by wcw; 08-07-15, 10:26 AM.
    Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
    Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
    Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
    Facebook http://www.facebook.com/EmporiumPlus
    Twitter http://twitter.com/emporiumplus

    Comment


      #3
      Re: Getting Powersearch to Run Rebuild Automatically

      Hi Bill -

      We have about 4500 products.

      Power Search takes about 2 - 4 minutes to catalog them manually.

      There is no button for Turbo.

      We are using version 5.0820

      Kevin

      __________________________
      GEOGRAPHIUCS ANTIQUE MAPS
      923 Putnam Ave
      Brooklyn,NY 11221
      TEL: 646-320-8650
      www.GEOGRAPHICUS.com

      Comment


        #4
        Re: Getting Powersearch to Run Rebuild Automatically

        You are using a six year old version of the module. A couple of features were added since then to make the rebuild a lot faster. The turbo feature will cut the rebuild to a few seconds. You can also limit the custom fields that you include in the mirror to just a couple which speeds it up even more. You need to update the module at the miva app store.

        Once you update you will use the regular cron update method.
        Last edited by wcw; 08-07-15, 11:45 AM.
        Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
        Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
        Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
        Facebook http://www.facebook.com/EmporiumPlus
        Twitter http://twitter.com/emporiumplus

        Comment


          #5
          Re: Getting Powersearch to Run Rebuild Automatically

          I've been playing with this for a while and still cannot get it to work. The rebuild runs from the URL but not from the cron. Where should I go from here?

          Kevin
          __________________________
          GEOGRAPHIUCS ANTIQUE MAPS
          923 Putnam Ave
          Brooklyn,NY 11221
          TEL: 646-320-8650
          www.GEOGRAPHICUS.com

          Comment


            #6
            Re: Getting Powersearch to Run Rebuild Automatically

            What is the cron task string you are using?
            Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
            Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
            Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
            Facebook http://www.facebook.com/EmporiumPlus
            Twitter http://twitter.com/emporiumplus

            Comment


              #7
              Re: Getting Powersearch to Run Rebuild Automatically

              This is the code. With xxxx being my secret number. It works if I run it as a URL and takes about 1 minute to complete. If I run from the admin and I click the turbo option, it runs in just a few seconds. As a cron, it does not run at all although the cron itself supposedly runs.

              wget --post-data='Screen=PSREBUILD&Store_Code=AntiqueMaps&runp s=xxxx' http://www.geographicus.com/mm5/merchant.mvc >/dev/null 2>&1

              I am using module version 5.124

              Kevin
              __________________________
              GEOGRAPHIUCS ANTIQUE MAPS
              923 Putnam Ave
              Brooklyn,NY 11221
              TEL: 646-320-8650
              www.GEOGRAPHICUS.com

              Comment


                #8
                Re: Getting Powersearch to Run Rebuild Automatically

                That is not the correct string. Look at the install doc. Also make sure you have the Turbo variable in the string.
                Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                Facebook http://www.facebook.com/EmporiumPlus
                Twitter http://twitter.com/emporiumplus

                Comment


                  #9
                  Re: Getting Powersearch to Run Rebuild Automatically

                  I'm really confused.

                  This is the string from your doc, located here

                  Code:
                  wget --post-data='Screen=YOURPAGE&Store_Code=YOURSTORECODE&runps=123' http://www.YOURDOMAIN.com/mm5/merchant.mvc >/dev/null 2>&1
                  from your doc, located here http://www.emporiumplus.com/v5/pscron.txt

                  I see there is another method in the install docs using this code

                  Code:
                   wget --post-data='Screen=SUTL&Action=SUTL&Store_Code=AntiqueMaps&Module_Code=powrsrch&powrsrch_rebuild=7777777&powrsrch_fulltext=name,descrip&turbo=1&UserName=xxx&Password=xxx&Provision=yes&Submit=Login' https://www.geographicus.com/mm5/admin.mvc --no-check-certificate >/dev/null 2>&1
                  WHich I will try now.

                  Kevin
                  __________________________
                  GEOGRAPHIUCS ANTIQUE MAPS
                  923 Putnam Ave
                  Brooklyn,NY 11221
                  TEL: 646-320-8650
                  www.GEOGRAPHICUS.com

                  Comment


                    #10
                    Re: Getting Powersearch to Run Rebuild Automatically

                    The second string is the regular cron method. Make the changes (password, user, fulltext fields) as needed. Make sure turbo is set to the number 1 as in the example.

                    Also, make sure you are limiting the custom fields in the mirror to one or two to start with. Do not leave that option blank in the feed setup.
                    Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                    Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                    Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                    Facebook http://www.facebook.com/EmporiumPlus
                    Twitter http://twitter.com/emporiumplus

                    Comment


                      #11
                      I am having the same problems trying to use this. I thought it might be my htaccess rewrites and seo short urls conflicting. So I made sure I used non short seo urls everywhere.
                      The docs on http://www.emporiumplus.com/v5/pscron.txt do not mention &turbo=1

                      I really need the search to include about 6 custom fields. That is how I run it manually within the store.
                      I am hoping to NOT have an admin password in the cron tab on the box.
                      If I want the powrsrch_rebuild value to be 500. But the scripts errors out with too many redirects when I use the test url.
                      If I either set powrsrch_rebuild to a really high value like 777777777 or use turbo=1 on the test url then it runs fine.
                      Questions:
                      1. What does turbo actually do? Does it by pass the extra custom fields I need included?
                      2. Do I have something wrong in my code, so that I can't set the rebuild to 500?

                      My test url is (note domain obfuscated intentionally)
                      Code:
                      http://www.mydomain.com/Merchant2/merchant.mvc?Screen=_kellypowersrchbuild&Store_Code=XRB&runps=123
                      Code:
                      <mvt:if expr="g.runps EQ '123'">
                            <mvt:item name="toolkit" param="sassign|powrsrch_rebuild|777777777" />
                          <mvt:item name="toolkit" param="sassign|powrsrch_fulltext|name,descrip,BRAND,COLOR,PACKAGING,UPC" />
                          <mvt:item name="toolkit" param="sassign|send2email|[email protected]" />
                          <mvt:item name="powrsrch" param="rebuild" />
                          <mvt:if expr="g.pscron_continue">
                              <mvt:item name="toolkit" param="sassign|newurl|http://www.mydomain.com/Merchant2/merchant.mvc?Screen=_kellypowersrchbuild&Store_Code=XRB&runps=123%querystring%" />
                              <mvt:item name="toolkit" param="vglosub|g.newurl,%querystring%,g.PSQueryString" />
                              <mvt:item name="toolkit" param="headeroutput|Status|301 Moved Permanently" />
                              <mvt:item name="toolkit" param="vheaderoutput|Location|g.newurl" />
                          </mvt:if>
                      <mvt:else>
                      bad
                      </mvt:if>
                      
                      
                      done
                      
                      <mvt:comment>
                      I think this is the cron tab I will use
                      wget --post-data='Screen=_kellypowersrchbuild&Store_Code=xrb&runps=123' http://www.mydomain.com/Merchant2/merchant.mvc >/dev/null 2>&1</mvt:comment>
                      Last edited by kayakbabe; 03-18-16, 12:47 PM.

                      Comment

                      Working...
                      X