Null results from yacysearch.json

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.

Null results from yacysearch.json

Beitragvon mlagneaux » Di Sep 13, 2016 9:08 am

Hello,

I'm using Yacy to add a search functionnality on a static web site. I've added a search form on my site home page which triggers a jQuery ajax request to my local Yacy server. The static site has been indexed by this Yacy server.

My ajax request points to yacysearch.json.

My problem is that for a same request I have different results. My search results panel uses pagination. I think there's no problem on the first page (startRecord=0). But for the following pages, sometimes the first result of the JSON flow returned by yacysearch.json is "null". So instead of having 5 items in my search results panel (maximumRecords=5), one item is missing.

I've the same problem in search portal provided by Yacy.

Do you know the cause of that probleme ? Can it be linked to an indexing problem ? Is that a known bug ?

Thanks in advance for your help. Feel free to ask if you need further details.
mlagneaux
 
Beiträge: 5
Registriert: Di Sep 13, 2016 8:57 am

Re: Null results from yacysearch.json

Beitragvon luc » Mi Sep 14, 2016 8:05 am

Hello,
did you configured your YaCy peer to run in "Search Portal" mode (in /ConfigBasic.html "Search portal for your own web pages")? Because the yacysearch.json (or yacysearch.html) API is performing realtime P2P search, its results are not completely deterministic in P2P mode, and as you report it there is maybe something more to fix.
By the way, if you only need results from your own index, I would recommand you using the /solr/select API which is faster and more reliable for this use. This approach is now used as default to demonstrate the YaCy Bootstrap Webclient usage.
luc
 
Beiträge: 283
Registriert: Mi Aug 26, 2015 1:04 am

Re: Null results from yacysearch.json

Beitragvon mlagneaux » Do Sep 15, 2016 9:43 am

Hello,

I've configured Yacy to run in "Intranet indexing" mode since pages I want to index are local.
I'm going to try to request directly SolR API.
mlagneaux
 
Beiträge: 5
Registriert: Di Sep 13, 2016 8:57 am

Re: Null results from yacysearch.json

Beitragvon mlagneaux » Mo Sep 19, 2016 11:16 am

I've requested directly SolR API and it works perfectly.
Thanks for your help.
mlagneaux
 
Beiträge: 5
Registriert: Di Sep 13, 2016 8:57 am

Re: Null results from yacysearch.json

Beitragvon luc » Mo Sep 19, 2016 5:30 pm

You're welcome!
Good to know it is working as you expect.
luc
 
Beiträge: 283
Registriert: Mi Aug 26, 2015 1:04 am


Zurück zu English

Wer ist online?

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