MiniVend Akopia Services

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

Re: Coordinated Range Searching



******    message to minivend-users from mikeh@minivend.com     ******

Quoting August Detlefsen (augustd@idiom.com):
> 
> Does anyone have an example of coordinated range searching?
> 
> For example if I want to find all products that were listed between November
> 1996 and April 1997, what would be the code? Can mv_coordinate and
> mv_range_look be used in conjunction?
> 

Not really, but a combination of:

	[page href=scan arg="
							co=yes
							sf=list_date
							sf=list_date
							se=199608
							se=199704
							op=ge
							op=le
						"]

is the same as a range look.

But without some qualifying info for a regex match it can be very slow as it
has to examine every line.

Best is to index and use the dict_look binary search. I have finally
put an example of that on the 3.12 index.html (the leftside file to
be exact). Note that it works in conjunction with this line in
catalog.cfg:

Database products INDEX category

You would add something like:

Database products INDEX category list_date

Now

	[page href=scan arg="
							dl=199608
							di=list_date
							de=199705
						"]

should do the trick (order is important here, read the docs for why).
Or for sure:

	[page href=scan arg="
							dl=199608
							de=199705
							fi=products.asc.list_date
						"]

-- 
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
Fast, reliable, cheap.              131 Willow Lane, Floor 2  | ||  _ \
Pick two and we'll talk.            Oxford, OH  45056         | || |_) |
 -- unknown                         <mikeh@minivend.com>     |___|  _ <
                                    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


Search for: Match: Format: Sort by: