GithubHelp home page GithubHelp logo

Comments (3)

vsudilov avatar vsudilov commented on June 4, 2024

Hi Alberto,

Seems like a straightforward improvement.

On Friday, July 22, 2016, Alberto Accomazzi [email protected]
wrote:

The search engine behind the ADS API is SOLR, which has performance
problem with queries that require "deep pagination," i.e. the retrieval of
records way down the list of results. The issues related to the degraded
performance are explained here:
https://cwiki.apache.org/confluence/display/solr/Pagination+of+Results

To improve the situation, SOLR implements the notion of cursors (also
explained in the page above) which mitigate the pagination problem for
queries generating a large set of results which need retrieving. I believe
an implementation of multi-page retrieval based on cursors would be more
robust for a few reasons:

  1. better performance: avoids recomputing long result list just to
    fetch items way down in the list (which could generate a timeout)
  2. consistent results: if the index is modified during the follow-up
    queries, some results might be duplicated or skipped using the current
    approach, whereas this should not happen with the user of cursors

I tested this approach against our search engine and it seems to work but
does require sort to include the unique key id as a tie-breaker when
creating a list of result (e.g. sort=date asc,id asc).


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#70, or mute the thread
https://github.com/notifications/unsubscribe-auth/ADV6ZAmDj3S3clLqw6a8F8fIXcvJXHVTks5qYSWvgaJpZM4JTGJR
.

from ads.

vsudilov avatar vsudilov commented on June 4, 2024

Currently sort defaults to None, which according to https://github.com/adsabs/adsabs-dev-api/blob/master/search.md returns results sorted by relevancy.

Using cursorMark requires defining sort, which would change this default behavior. Is there a way to explicitly specify "relevancy" as a sort strategy?

I'm going to continue implementing support for cursorMark, but it seems like it only makes sense to use it if sort is not None.

Thoughts?

from ads.

aaccomazzi avatar aaccomazzi commented on June 4, 2024

The default SOLR sort order is score desc so you could explicitly set this as primary if sort is None

from ads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.