MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: INDEX and [area scan



mikeh@minivend.com wrote:
> 
> ******    message to minivend-users from mikeh@minivend.com     ******
> 
> Quoting Ed LaFrance (edlafrance@printexusa.com):
> > >
> > >I have two small problems.  The first is that [area scan doesn't like
> > >categories such as Diamond 80, it works just fine with Diamond_80.
> > >Apparently is doesn't like spaces in the category names, is there a work
> > >around?
> 
> The FAQ says "when in doubt, quote".
> 
>         [area href=scan
>                         arg="
>                                 di=category
>                                 dl=Diamond 80
>                                 "]
> 
> If you can tell me that doesn't work, then submit a bug report. 8-)
> 
> If you have a database of less than several thousand items, then it is just
> as well to use the plain text search and not bother with indexing.
> 
> The second is the INDEX for the products.asc.  It says in the
> > >manual that anytime the database is changed it will build a new INDEX
> > >the next time it is accessed.  My system is not building a new index, is
> > >there a way to force it to build a new one?
> 
> One way is to "touch" the file to make sure it imports after
> exporting. You can do that pretty easily with a usertag.
> 
> MV3.14 has a little tag called "index" which can build a bunch of
> different indexes without rebuilding if it isn't necessary.
> 
> [index table=products
>         extension=category
>         spec="
>                                 rf=category,0
>                 ra=yes
>                 tf=category
>                         "
> ]
> 
> Or you can index it yourself with the convoluted:
> 
>         [tag op=flag type=write]products[/tag]
>         [tag touch write]products[/tag]
>         [tag op=log
>                 file=products/products.asc.category
>                 type=text
>                 interpolate=1][loop search="ra=yes/ml=100000/rf=category,0"][loop-code]
> [/loop][/tag]
> 
> Spacing on that little beast must be exactly as above.
> 
> This is one of the first areas I will clean up in MV4. I might
> keep the existing stuff as a UserTag, or I might just nuke it
> as unrecoverable. 8-)
> 
> --
> Mike Heins                          http://www.minivend.com/  ___
>                                     Internet Robotics        |_ _|____
>                                     131 Willow Lane, Floor 2  | ||  _ \
> It's a little-known fact            Oxford, OH  45056         | || |_) |
> that the Y1K problem caused         <mikeh@minivend.com>     |___|  _ <
> the Dark Ages. -- unknown           513.523.7621 FAX 7501        |_| \_\
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list

Thank you for the help.  Adding args=" solved the [area scan problem and
the [index table=products solved the INDEX problem.  I appreciate your
taking time to respond to my questions.
Sincerely,

Craig Oettle


Search for: Match: Format: Sort by: