Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

fix for using search:search using custom constraint instead of extsim… #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

janmichaelyu
Copy link

…ilar.

Required for migrating from a direct fetch to extsimilar to using a custom constraint to get 'similar' results. @grtjn Please review. :)

@grtjn
Copy link
Contributor

grtjn commented May 8, 2019

Very interesting!

I think we need to send id rather than uri, and the middle-tier needs to translate the id to uri. I also thought you mentioned putting this in a SimilarApi, but to be honest, it makes a lot of sense to put it in SearchApi, particularly since it leans so much on the existing search code.

I mentioned not using a separate search options file in the other PRs. A benefit from that would be that you could apply the current search constraints to the similar query. Not entirely sure if a user would always want that, but would be a nice user option to have a toggle for that.

@grtjn grtjn self-requested a review August 13, 2019 08:08
@grtjn grtjn self-assigned this Aug 13, 2019
@grtjn
Copy link
Contributor

grtjn commented Aug 13, 2019

I'm currently thinking to merge this, and refine later. wdyt @mariannemyers ?

@grtjn grtjn requested a review from mariannemyers August 13, 2019 08:09
error => {
return error;
}
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As suggested in the PR against grove-ml-gradle and grove-node, we should put that custom constraint inside all.xml. You can then provide the search type as param to this function, and somehow leverage the search function in this library to make the backend call..

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

Successfully merging this pull request may close these issues.

2 participants