Help me understand what is "startRecord=n"

Discussion in English language.
Forumsregeln
You can start and continue with posts in english language in all other forums as well, but if you are looking for a forum to start a discussion in english, this is the right choice.

Help me understand what is "startRecord=n"

Beitragvon davide » Mo Okt 26, 2015 6:22 pm

As per the API documentation, yacysearch.json offers a parameter named startRecord. I don't understand what it is.

Here I run a couple of queries to try understand.
For each query, my "test.sh" script sorts the returned results according to their "ranking" attribute.

Code: Alles auswählen
## Query 1  (startRecord=1)
$ ./test.sh
→ Search for: http://192.168.1.109:8090/yacysearch.json?query=sandisk+8GB+class+6&maximumRecords=20&startRecord=1&resource=global

rank: 37064.0          title: Amazon.com: Abacus24-7 32GB microSD Card [micro SD Memory Card, SDHC, ...
rank: 33613.0          title: Amazon.com: SanDisk 16GB Class 4 Micro SDHC Memory Card, ...
rank: 31904.0          title: Patriot LX Series 64GB Class 10 Secure Digital Extended Capacity ...
rank: 30433.0          title: Sandisk SDSDB008GB35 SDHC Card - 8GB, Class 4 ...
rank: 29763.0          title: Patriot LX 8GB Secure Digital High-Capacity (SDHC) Flash Card ...
rank: 29464.0          title: Sandisk SDSDB008GB35 SDHC Card - 8GB, Class 4 ...
rank: 12893.0          title: Install Windows 7 From USB
rank: 3.8766465        title: Sandisk 8GB CLASS 10 Ultra SD SDHC HD Video Memory ...
rank: 3.3861828        title: Amazon.com: SanDisk 8GB Class 4 SDHC Flash Memory ...
rank: 2.2084477        title: SanDisk Speicherkarten Test
rank: 2.1804197        title: Sandisk 8gb Class 4 Sdhc Card At Tigerdirect.Com
rank: 2.1804197        title: Sandisk 8gb Class 4 Sdhc Card At Tigerdirect.Com
rank: 2.1608243        title: snake._V192250075_.gif%5C%22
rank: 2.1536863        title: snake._V192250075_.gif%5C%22
rank: 2.1536863        title: snake._V192250075_.gif%5C%22
rank: 2.0419774        title: Sandisk SDSDB008GB35 SDHC Card - 8GB, Class 4 ...
rank: 1.0398948        title: Amazon.in: Buy Sandisk 8GB MicroSDHC Class 4 Memory Card Online ...
rank: 1.0165591        title: SanDisk Ultra microSDHC 8GB Class 10 Speicherkarte ...
rank: 0.8894893        title: Amazon.com: SanDisk Ultra 8GB SDHC Class 6 Flash Memory Card ...
rank: 0.7335783        title: SanDisk Ultra® microSDHC™/microSDXC™ UHS-I Card


Code: Alles auswählen
## Query 2  (startRecord=21)
$ ./test.sh
→ Search for: http://192.168.1.109:8090/yacysearch.json?query=sandisk+8GB+class+6&maximumRecords=20&startRecord=21&resource=global

rank: 32193.0            title: Amazon.com: Fujifilm 8 GB SDHC Class 4 Flash Memory ...
rank: 29178.0            title: Sandisk SDSDB008GB35 SDHC Card - 8GB, Class 4 ...
rank: 29162.0            title: Sandisk SDSDB008GB35 SDHC Card - 8GB, Class 4 ...
rank: 29122.0            title: Sandisk SDSDB008GB35 SDHC Card - 8GB, Class 4 ...
rank: 25956.0            title: Single review: Lowepro Edit 130 (Black) Video Bag ...
rank: 25542.0            title: Single review: Patriot Signature Series 8GB Micro SDHC ...
rank: 24128.0            title: Electronics, Digital Cameras, Digital Camera Accessories, ...
rank: 23488.0            title: Secure Digital High Capacity Memory Cards, SDHC Cards,...
rank: 22843.0            title: SanDisk 8GB SDHC Extreme® III - 20MB/sec, ...
rank: 22795.0            title: SanDisk Micro SDHC at TigerDirect.com
rank: 22583.0            title: Secure Digital High Capacity Memory Cards, SDHC ...
rank: 22574.0            title: Secure Digital High Capacity Memory Cards, SDHC ...
rank: 22463.0            title: Ingram Micro Flash Memory at TigerDirect.com
rank: 22289.0            title: Transcend Flash Memory between $0.00 and ...
rank: 22259.0            title: Coupons, Promo & Discount Codes | TigerDirect.com
rank: 22109.0            title: Computer Hardware, Flash Memory & Readers, ...
rank: 1.8434802          title: SANDISK Carte SDHC 8GB Sandisk Class 4...
rank: 1.0277683          title: Sandisk Ultra 8GB Class 10 UHS I SDHC ...
rank: 0.0042389673       title: •• Tematy - Google, Microsoft, notebooki...
rank: 0.0014782711       title: Index of Deutsches Forum (German)


As you see, the two queries return different results with different rankings; however, I don't understand why part of the results returned by the second query have a higher rank than some results of the first query.

Shouldn't the second query return results with a lower ranking score? Is the ranking computed independently for each batch of results? Is it logically correct to merge together multiple batches of results and reorder them according to their rank? This implies the rank scores are absolute rather than relative to their own batch.
davide
 
Beiträge: 84
Registriert: Fr Feb 15, 2013 8:03 am

Zurück zu English

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste

cron