Skip to content

Search field not accessible in Response object for MultiSearch #1223

Closed
@benrudolph

Description

@benrudolph

The docs say that you should be able to access the search object in the response, but after inspecting the code and trying in code, I get an attribute error. I believe it's only available at ._search. Would be nice if this was a public method so we can correlate the response with the query.

responses = ms.execute()

for response in responses:
    print("Results for query %r." % response.search.query)
    for hit in response:
        print(hit.title)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions