YaCy-Bugtracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000580YaCy[All Projects] Generalpublic2015-05-23 17:262015-05-24 16:43
ReporterDavide 
Assigned ToBuBu 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
ETAnone 
PlatformOSDebian 7OS Version
Product VersionYaCy 1.8 
Target VersionFixed in Version 
Summary0000580: NEAR keyword breaks yacysearch.json
DescriptionThe results appear broken.
See "results.json".
Steps To Reproduce$ curl 'http://admin:password@localhost:8090/yacysearch.json?query=acer%20extensa%20NEAR&maximumRecords=50&contentdom=text&resource=global&verify=ifexist&lr=lang_en' [^] -s > results.json

# (results.json attached)
Additional Informationyacysearch.html works just fine; yacysearch.json breaks.
See example.
TagsNo tags attached.
Attached Files? file icon results.json [^] (4,325 bytes) 2015-05-23 17:26
? file icon results_2.json [^] (50,225 bytes) 2015-05-24 04:44

- Relationships

-  Notes
(0001054)
BuBu (developer)
2015-05-23 22:14

Don't see what's broken here.
It is not the searchterm NEAR.
The search just delivers Zero results, as posted in attached json

"totalResults": "0",

(0001058)
Davide (reporter)
2015-05-24 04:44

I believe the wiki entry for the "NEAR" keyword is misleading: it shows an usage example as "apache server NEAR", while the correct form appears to be "apache server /near", with slash and lowercase. (http://www.yacy-websuche.de/wiki/index.php/En:SearchParameters#NEAR [^])

So, correcting my query to reflect this, I run:
curl 'http://admin:password@localhost:8090/yacysearch.json?query=acer%20extensa%20%2Fnear&maximumRecords=50&contentdom=text&resource=global&verify=ifexist&lr=lang_en' [^] -s >results_2.json # file attached


and this time it does return results. (but still with "totalResults": "0",)
So there is still a bug, but could be unrelated to "/near".
(0001060)
Davide (reporter)
2015-05-24 16:43

Confirmed: https://github.com/yacy/yacy_search_server/blob/b47267b79c79497d72595fa6f86b047b67f2bdc8/htroot/yacysearch.java#L381 [^]

- Issue History
Date Modified Username Field Change
2015-05-23 17:26 Davide New Issue
2015-05-23 17:26 Davide File Added: results.json
2015-05-23 22:14 BuBu Note Added: 0001054
2015-05-23 22:14 BuBu Assigned To => BuBu
2015-05-23 22:14 BuBu Status new => feedback
2015-05-24 04:44 Davide Note Added: 0001058
2015-05-24 04:44 Davide Status feedback => assigned
2015-05-24 04:44 Davide File Added: results_2.json
2015-05-24 16:43 Davide Note Added: 0001060


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker