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

Search engine searchapi does not support retrieving per doc metadata directly #140

Closed
dacox opened this issue Nov 30, 2023 · 1 comment
Closed

Comments

@dacox
Copy link
Contributor

dacox commented Nov 30, 2023

Describe the bug
When using the searchapi searchengine, I get the following error:

Search engine searchapi does not support retrieving per doc metadata directly

To Reproduce

Using the newly pushed docker image released after o19s/quepid#890

https://hub.docker.com/layers/o19s/quepid/latest/images/sha256-bb94695eb976fa83e51c71c49436e9da3063d720607ed9961aca7c8399e372a7

Load a Case that uses searchapi - the case never loads results.

Name: None specified, using generated name

Search engine:  searchapi

Endpoint url: http://name-of-internal-service/search/

Custom headers: { "Authorization": "Token BLAHBLAHBLAH", "Accept": "application/json", "Content-Type": "application/json", "FOO": "BAR"}

API method: POST

Proxy Requests: true

Basic Auth Credential: 0

Options:

Custom Code Mapper:

numberOfResultsMapper = function(data){
  return data.length
};

docsMapper = function(data){...

Expected behavior

The case should not error

Screenshots

Screenshot 2023-11-30 at 11 32 04 AM

Additional context

I have tracked it down to 9034c0b

@epugh
Copy link
Member

epugh commented Dec 5, 2023

This was fixed in #141... If it itsn't working for you, please reopen this ticket!

@epugh epugh closed this as completed Dec 5, 2023
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

2 participants