Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AuthorDetails: Use msearch for AJAX requests #15

Open
ltog opened this issue Apr 19, 2016 · 2 comments
Open

AuthorDetails: Use msearch for AJAX requests #15

ltog opened this issue Apr 19, 2016 · 2 comments

Comments

@ltog
Copy link

ltog commented Apr 19, 2016

Multiple AJAX requests tend to get slow. Especially if there are many authors, e.g. in http://data.swissbib.ch/person/514ac9b2-4204-3bd1-b7e1-bf6a58d81530

@ltog
Copy link
Author

ltog commented Jun 8, 2016

Here is a query to search for multiple persons using a list of multiple ids: https://github.com/htw-pk15/vufind/wiki/Elasticsearch#suche-nach-mehreren-personen-mit-gegebenen-ids

GET /testsb/person/_search
{
  "query": {
    "filtered": {
      "filter": {
        "in": {
          "@id": ["http://data.swissbib.ch/person/825b0ab5-c490-38e8-af50-4ed444e87b44", "http://data.swissbib.ch/person/5b590f17-2263-309f-bf3a-6c21e1970ad9", "http://data.swissbib.ch/person/4ca6d8e1-694e-3fea-9cde-bc09a7b7f61c"]
        }
      }
    }
  }
}

@ltog
Copy link
Author

ltog commented Jun 8, 2016

It seems, filtered queries are not implemented yet. See /usr/local/vufind/httpd/module/LinkedSwissbib/src/LinkedSwissbib/Backend/Elasticsearch/DSLBuilder/Query

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant