Extra Section count query ranges


 

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




Extra Section count query ranges

Add a New Topic Reply to Post
UserPost

2:24 pm
February 6, 2008


Tom

Guest

I'm trying to get a count on a query string w/ a range of values.  example, I want a count of all hits w/ catentry_id=2300000 through catentry_id=2302000.  Just a sum total is great, but I can't even see to get a row for each value.

 

This is what I'm trying, which the regex work form a grep:

ExtraSectionName1="Miss Prelims"
ExtraSectionCodeFilter1=""
ExtraSectionCondition1="URL,(.*)"
ExtraSectionFirstColumnValues1="QUERY_ STRING,catentry_id=(230[0-2][0-9]
[0-9][0-9])"
ExtraSectionFirstColumnTitle1="Miss Views"
ExtraSectionFirstColumnFormat1="%s"
ExtraSectionStatTypes1=PB
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=1
MinHitExtra1=1
 

It seems that any range like [0-9] does not work.  I've also tries 230[012]…. w/o sucess.

 Any help is appreacitied.

Tom 

3:56 am
February 7, 2008


Jean-Luc

Admin

posts 220

Hi,

You don't get a row for each value, because you specified that you only wanted one row with :

MaxNbOfExtra1=1

To get 10 rows, use :

MaxNbOfExtra1=10

If you only want one row with the total number of hits, use :

ExtraSectionFirstColumnValues1="QUERY_
STRING,catentry_id=(230)[0-2][0-9]
[0-9][0-9]"

Jean-Luc

6:31 pm
February 21, 2008


slick-willy

Guest

If you want catentry_id=2302000 to be included, but not catentry_id=23020001 or catentry_id=2302999, you'll need something different than what you tried, and what Jean-Luc suggested.

 Something like 

ExtraSectionFirstColumnValues1="QUERY_
STRING,catentry_id=(230)[0-1][0-9]
[0-9][0-9] || QUERY_STRING, catentry_id=2302000"

Add a New Topic Reply to Post


Reply to Topic: Extra Section count query ranges

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 2 + 7        (Required)

Topic Reply:


 

WebStats1


About the InternetOfficer.com forum

Currently Online:

1 Guest

Maximum Online: 20

Forums:

Groups: 2

Forums: 7

Topics: 104

Posts: 493

Members:

There are 26 members

There are 94 guests


Jean-Luc has made 220 posts

Top Posters:

Steve - 14

angelko - 4

cwei - 4

Kinglui - 3

vtroymck - 3

Administrator: Jean-Luc | Moderators: Jean-Luc


© Simple:Press Forum - Version 3.1.2 (Build 340)