summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_search.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34459 -- Fixed SearchVector() crash for parameters with % symbol.Mariusz Felisiak2023-04-061-0/+6
| | | | | | Thanks Patryk Zawadzki for the report. Regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca.
* Moved SearchVectorIndexTests.test_search_vector_index to ↵Mariusz Felisiak2023-04-061-21/+0
| | | | postgres_tests.test_indexes.
* Used homogeneous weights list in SearchRank tests.Florian Apolloner2022-12-061-1/+2
| | | | A homogenous array is required on PostgreSQL.
* Fixed #29084 -- Skipped some postgres_tests.test_search tests when ↵Pablo2022-12-061-0/+9
| | | | pg_catalog isn't English.
* Refs #33308 -- Ensured type handlers are registered for all PostgreSQL ↵Florian Apolloner2022-12-011-6/+0
| | | | | | specific tests. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #33675 -- Dropped support for PostgreSQL 10 and PostGIS 2.4.Mariusz Felisiak2022-05-041-3/+1
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-241/+353
|
* Refs #24121 -- Improved Value.__repr__().Mariusz Felisiak2021-05-241-9/+9
|
* Fixed #31601 -- Fixed SearchHeadlineTests on PostgresSQL 9.6.18+, 10.13+, ↵Hannes Ljungberg2020-05-191-7/+9
| | | | 11.8+, and 12.3+.
* Fixed #31579 -- Dropped support for PostgreSQL 9.5 and PostGIS 2.2.Mariusz Felisiak2020-05-141-3/+0
|
* Fixed #28194 -- Added support for normalization and cover density to SearchRank.Hannes Ljungberg2020-03-231-1/+61
|
* Fixed #31340 -- Allowed query expressions in SearchQuery.value and __search ↵Baptiste Mispelon2020-03-161-1/+13
| | | | lookup.
* Refs #31304 -- Added tests for using __search lookup with combined ↵Mariusz Felisiak2020-03-131-0/+9
| | | | SearchQuerys with the same config.
* Refs #31340 -- Simplified SearchQuery by making it subclass Func.Baptiste Mispelon2020-03-131-5/+9
|
* Refs #31304 -- Made __search lookup default to its rhs' config.Simon Charette2020-03-061-0/+6
| | | | | | This make the SearchLookup lookup more coherent with its SearchVectorExact base which configures its rhs SearchQuery with its lhs' config.
* Fixed #31147 -- Added SearchHeadline to django.contrib.postgres.Hannes Ljungberg2020-03-031-5/+124
|
* Refs #31211 -- Prevented SearchConfig nesting in SearchVector and ↵Simon Charette2020-02-261-2/+9
| | | | | | | SearchQuery init. Passing a SearchConfig instance directly to SearchVector and SearchQuery would result in nested SearchConfig instance.
* Fixed #28528 -- Allowed combining SearchVectors with different configs.adamb702020-02-061-0/+11
|
* Improved SearchVectorCombinable and SearchQueryCombinable error messages.Hannes Ljungberg2020-01-271-1/+12
|
* Fixed #31088 -- Added support for websearch searching in SearchQuery.James Turk2019-12-161-0/+39
|
* Fixed #30488 -- Removed redundant Coalesce call in SQL generated by ↵Thomasina Lee2019-05-201-0/+4
| | | | | | SearchVector. Regression in 405c8363362063542e9e79beac53c8437d389520.
* Fixed #30385 -- Restored SearchVector(config) immutability.Simon Charette2019-04-231-0/+18
| | | | | | | | | | | | | | Regression in 1a28dc3887e8d66d5e3ff08cf7fb0a6212b873e5. The usage of CONCAT to allow SearchVector to deal with non-text fields made the generated expression non-IMMUTABLE which prevents a functional index to be created for it. Using a combination of COALESCE and ::text makes sure the expression preserves its immutability. Refs #29582. Thanks Andrew Brown for the report, Nick Pope for the review.
* Fixed #29997 -- Allowed combining SearchQuerys with different configs.Jaap Roes2018-11-301-4/+16
| | | | Seems to be a needless restriction in 978a00e39fee25cfa99065285b0de88366710fad.
* Used assertCountEqual() in contrib.postgres.search tests.Tim Graham2018-11-291-7/+7
|
* Fixed #27899 -- Added support for phrase/raw searching in SearchQuery.Claude Paroz2018-09-171-2/+42
| | | Thanks Tim Graham, Nick Pope, and Claude Paroz for contribution and review.
* Fixed #29644 -- Made SearchQuery.__str__() reflect negation and grouping.Tom Forbes2018-08-151-1/+27
|
* Fixed #29582 -- Fixed a crash when using SearchVector with non text-fields.Simon Charette2018-07-211-0/+6
| | | | | The PostgreSQL concat() function handles nulls and non-text values better than the || operator.
* Fixed test failures due to ordering differences on PostgreSQL 10.Tim Graham2017-11-151-2/+2
|
* Replaced type-specific assertions with assertEqual().Tim Graham2017-03-171-2/+2
| | | Python docs say, "it's usually not necessary to invoke these methods directly."
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-1/+1
|
* Fixed #27143 -- Allowed combining SearchQuery with more than one & or | ↵Nicola Jordan2016-09-071-0/+32
| | | | operators.
* Removed a flaky contrib.postgres search test.Tim Graham2016-04-221-14/+1
| | | | The test sometimes fails on CI and isn't worth debugging at this time.
* Refs #3254 -- Added full text search to contrib.postgres.Marc Tamlyn2016-04-221-0/+269
Adds a reasonably feature complete implementation of full text search using the built in PostgreSQL engine. It uses public APIs from Expression and Lookup. With thanks to Tim Graham, Simon Charettes, Josh Smeaton, Mikey Ariel and many others for their advice and review. Particular thanks also go to the supporters of the contrib.postgres kickstarter.