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

[Typesense] Fix Search Parameters Issue #794

Closed
wants to merge 41 commits into from

Conversation

karakhanyans
Copy link
Contributor

Fixed the problem with "withSearchParameters" method, removed that method, and used Scout/Builder $options to allow users to add additional options to the query.

/**
* Create new Typesense engine instance.
*
* @param \Typesense $typesense
* @param Typesense $typesense
Copy link
Member

Choose a reason for hiding this comment

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

Can you use FQN here?

$this->searchParameters = $options;

return $this;
}
Copy link
Member

Choose a reason for hiding this comment

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

Removing these methods would imply a breaking change. Are you sure this is the right call? Everyone who is already using Typesense in Scout now will see their implementation break. But we only launched recently so there might still be a window for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The thing is, that these methods are inside the Engine and not accessible from the Builder instance. I can leave them inside Engine, just to not introduce any breaking changes.

Copy link
Member

Choose a reason for hiding this comment

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

Ah good call. Yeah you can remove them 👍

@driesvints
Copy link
Member

@karakhanyans I'm gonna have to ask you to resend the PR. Seems something went wrong with branching here and lots of old commits are travelling along. Please also see my remarks above. Thanks!

@driesvints driesvints closed this Jan 23, 2024
@karakhanyans
Copy link
Contributor Author

@driesvints did the changes you requested here: #795

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

Successfully merging this pull request may close these issues.

4 participants