Skip to content

Commit

Permalink
minor #2440 [Autocomplete] Fix Incompatibility filter_query and max_r…
Browse files Browse the repository at this point in the history
…esults (doc) (ytilotti)

This PR was merged into the 2.x branch.

Discussion
----------

[Autocomplete] Fix Incompatibility filter_query and max_results (doc)

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| Issues        | Fix #769
| License       | MIT

Fix in the documentation the incompatibility between filter_query and max_results.

Commits
-------

0dc2e73 fix(doc): Incompatibility filter_query and max_results
  • Loading branch information
smnandre committed Dec 24, 2024
2 parents ef5bee1 + 0dc2e73 commit 07cbb0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Autocomplete/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ to the options above, you can also pass:

``filter_query`` (default: ``null``)
If you want to completely control the query made for the "search results",
use this option. This is incompatible with ``searchable_fields``::
use this option. This is incompatible with ``searchable_fields`` and ``max_results``::

[
'filter_query' => function(QueryBuilder $qb, string $query, EntityRepository $repository) {
Expand Down

0 comments on commit 07cbb0b

Please sign in to comment.