Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Search with attributesToRetrieve and displayedAttributes #69

Closed
curquiza opened this issue Mar 2, 2021 · 2 comments · Fixed by #58
Closed

Search with attributesToRetrieve and displayedAttributes #69

curquiza opened this issue Mar 2, 2021 · 2 comments · Fixed by #58

Comments

@curquiza
Copy link
Member

curquiza commented Mar 2, 2021

  • Add documents with title and name as fields
  • Set displayedAttribtues as name
  • Basic search without an attributesToRetrieve -> it only displays the name field -> OK and iso
  • Now, search with attributesToRetrieve set as ['title', 'name'] -> it displays the name AND the title fields -> not iso. It should only display the name fields.

attributesToRetrieve should check what is present in the displayedAttribtues before displaying the fields.

@curquiza
Copy link
Member Author

curquiza commented Mar 15, 2021

Sorry if it's already done (the PR #58 is too big, I'm not able to check if it has been added): can we add tests of this please?

@MarinPostma
Copy link
Contributor

yes @curquiza, I haven't started writing tests for search just yet, adding it to #3.

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 a pull request may close this issue.

2 participants