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

Order of results in REST calls #14

Open
dukefoss opened this issue Aug 6, 2019 · 0 comments
Open

Order of results in REST calls #14

dukefoss opened this issue Aug 6, 2019 · 0 comments

Comments

@dukefoss
Copy link
Collaborator

dukefoss commented Aug 6, 2019

Description:
The results from method "getSimilarInstancesByID" are in ascending order but should be in descending order. Only an error when k=-1. (If k>0 the results are correctly descending).

Steps to reproduce:

  1. Add Concept and Case Base with REST API. (/Or import project and skip step 1,2 and 3)
  2. Add attributes.
  3. Add instances.
  4. Call method "getSimilarInstancesByID" with k = -1 (Default value)

Expected and Actual Result:
Expect result cases to be descending, but is ascending.

Note:
Query.java (package no.ntnu.mycbr.rest) line 273:
if(k>0){ ... }
Does not set "RETRIEVE_K_SORTED" if k=-1.

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