Commit Graph

232 Commits

Author SHA1 Message Date
László Károlyi 90593c07b7 Allow more internal data exact searches
Bump version

Fix syntax error

Adjust CHANGELOG.rst

Add test for __exact on ID
2023-03-19 12:28:10 +01:00
AJ Slater 870b48dfcd
Management Command Database Locking 2022-02-10 20:44:21 +01:00
AJ Slater 515651f893
tests for non-multiprocessing management commands 2022-02-07 21:01:01 +01:00
Claude Paroz eb2797aa19 Remove force_text usage 2021-11-12 10:36:53 +01:00
Alejandro R. Sedeño 4a952bb7f9 Drop code meant to support Xapian 1.2.x, 1.3.x.
xapian-haystack now lists xapian 1.4.x as the minimum supported
version, so we don't need to carry around code to support 1.2.x
anymore.
2021-09-26 18:04:08 +02:00
Alejandro R. Sedeño 20af9d214e Replace Travis CI by GitHub Actions
Co-authored-by: Claude Paroz <claude@2xlibre.net>
2021-09-24 19:57:33 +02:00
Alejandro R. Sedeño 37e8b5af8f work on xapian-delve issues
1) `xapian_wheel_builder.sh` adds `xapian-delve` to the wheel
2) `tests/xapian_tests/tests/test_backend.py` learns to check the new `xapian-delve` location
3) drop support for delve from xapian<1.3 (support dropped along Python 2)
2021-09-24 19:57:33 +02:00
Claude Paroz 90f5bc8c14 Simplified super() calls 2021-08-17 23:22:19 +02:00
Claude Paroz 97f54ed37c Add CI tests for Django 2.2, 3.0, 3.1 2021-08-17 23:10:56 +02:00
Claude Paroz 0f9d94fb23 Dropped Python 2 support 2021-08-09 19:03:53 +02:00
Alejandro R. Sedeño 02653af62c test setting tweaks for django 2.1 2019-01-17 17:49:22 +01:00
Alejandro R. Sedeño bc63eb5e2a Update test expected queries
This commit could use scrutiny.
2019-01-17 17:49:22 +01:00
Jorge C. Leitão de7a59689d Added tests for querying and indexing django.contrib.contenttype. 2017-03-01 11:41:28 +01:00
Claude Paroz de76bad3f0 Fixed #161 -- Supported range search filter
`range` was added in django-haystack commit 3994bfa199.
2016-10-30 19:38:27 +01:00
Claude Paroz e0e6a11e46 Endswith is not yet supported in Xapian
'endswith' query support has been added in django-haystack/django-haystack@42f53cda9.
2016-10-14 16:25:43 +02:00
Claude Paroz d1c59752ce Haystack now defaults to __content instead of __contains
Echo to commit django-haystack/django-haystack@42f53cda9
2016-10-14 16:25:43 +02:00
Claude Paroz c330906457 Dropped support for Django 1.6/1.7 and added Django 1.9/1.10 support 2016-10-14 16:25:43 +02:00
Claude Paroz a70c63f846 Updated fixtures lists
Echo to commit django-haystack/django-haystack@7299adc4c (renamed base test
fixture).
2016-10-14 15:56:28 +02:00
Jorge C. Leitão 63cfcc1d73 Fixed tests for Xapian 1.3.
Changes were mostly on how the query parser parsed a query.
Probabily we should not test that anyway, but for now
it is passing in 1.3.3
2015-11-14 12:19:16 +01:00
Jorge C. Leitão 45191f8944 Date facets now return datetimes instead of strings.
Also added one more test to date facets.
2015-11-12 00:22:06 +01:00
Jorge C. Leitão a3ea18207a Added test of field facets of floats and numbers. 2015-11-12 00:22:06 +01:00
Jorge C. Leitão 0bea487560 Added test for min and max values of a float field. 2015-11-12 00:22:06 +01:00
Jorge C. Leitão fdc91c6892 Major re-organization of tests. No new test. 2015-11-12 00:21:57 +01:00
Jorge C. Leitão 767458509c Fixed tests for Django 1.7 and 1.8. 2015-04-16 20:28:02 +02:00
antlord 1ea3549d68 Fixed #117 -- Added support for EdgeNgram and Ngram.
Docstring has been updated

tests has been created

some corrects of unusable imports

Fixes created after notices in pull request.

class of mock has been fixed, test of indexation edge ngram has been created

big cycle has been separated to generator

fix depencies

tests has been updated

some refactoring and generator of edge ngram terms has been updated

Package "six" has been removed from requirements, class with edge ngram
field has been created. Edge ngram field has been removed from another
mocks. Indexation for this class has been splitted to separate class.

unimportant tests has been removed

both techniques, ngram and edge ngram, has been implemeted

little refactoring

some minor fixes
2014-12-30 18:21:42 +01:00
Jorge C. Leitão 9399958ab1 Fixed incompatibility with Django-Haystack tests. 2014-09-11 18:39:01 +02:00
Jorge C. Leitão 11ba78f42d Fixed #129 -- auto_query now works as expected.
Modified tests since "text" is the main document, which
doesn't make sense to use "startswith".
2014-06-13 20:04:38 +02:00
Jorge C. Leitão fc0a9f71d2 Fixed #49 - Improves support for exact matches on text.
This efectively increases the index size because it
now indexes literal words to improve __exact results.
2014-05-23 09:43:36 +02:00
Jorge C. Leitão 253ca46844 Added test to check positional information on document. 2014-05-23 08:01:42 +02:00
Jorge C. Leitão 6c135e92f4 Improved how __exact works when used with multiple words. 2014-05-22 09:31:37 +02:00
Jorge C. Leitão ec8fb42e68 Fixed #103 - improves support for exact search. 2014-05-21 06:58:29 +02:00
Jorge C. Leitão ad0d67dc12 Added regression test for #103. 2014-05-21 06:58:29 +02:00
Jorge C. Leitão 39bc6d6c89 Improved robustness of test. 2014-05-21 06:58:28 +02:00
Jorge C. Leitão 3c5f9d4a36 Improved robustness of auto_query test. 2014-05-21 06:58:28 +02:00
Jorge C. Leitão 229752da87 Reorganized, renamed, and improved docstrings of TestCases. 2014-05-21 06:58:28 +02:00
Jorge C. Leitão b4a41565a5 Added test for multivalue indexing. 2014-05-21 06:58:28 +02:00
Jorge C. Leitão ab26c30d90 Fixed #119 - Adds support to non-anscii indexing and search. 2014-05-21 06:58:28 +02:00
Jorge C. Leitão e6d2350790 Added tests to check that every field type is correctly indexed. 2014-05-21 06:58:28 +02:00
Jorge C. Leitão 9d29d59222 Improved how date and datetime is indexed.
They can now be text-searched using UTC time format, on date, time
or both.
2014-05-21 06:58:28 +02:00
Jorge C. Leitão 34a172199c Applied 2to3 to convert all code to Python 3.X.
- Related to #128, but doesn't fix it since there
  are no tests for Python 3.X
- It passes all tests in Python2.7
2014-05-21 06:58:27 +02:00
Jorge C. Leitão 61c6ac7a29 Fixed tests to account for the new query correspondence. 2014-05-18 17:09:41 +02:00
Jorge C. Leitão 8c14898088 Made general improvement to the code. 2014-05-18 17:09:06 +02:00
Jorge C. Leitão 6576ee883e Fixed #109 - Raises InvalidIndexError when facet is not indexed.
Also added regression test.
2014-05-18 14:16:18 +02:00
Jorge C. Leitão 1c3a7ff4a5 Fixed #126 - Deprecates microsecond indexing. 2014-05-18 14:16:00 +02:00
Jorge C. Leitão b623ea2556 Fixed #109 - Raises InvalidIndexError when facet is not indexed.
Also added regression test.
2014-05-18 14:15:59 +02:00
Jorge C. Leitão 1b764d7ddf Removed dependency on type long; field_type can now be datetime. 2014-05-18 14:14:34 +02:00
Jorge C. Leitão 9907b4522f Refactored tests code.
Mostly PEP8, but also redundant asserts.
2014-05-17 20:12:55 +02:00
Jorge C. Leitão 8c805b72e5 Added tests to address issue #123. 2014-05-17 19:22:03 +02:00
Jorge C. Leitão a27676a850 Fixed #111 - Removes Python error.
Added test to check it works.
2014-05-17 18:07:21 +02:00
jorgecarleitao 6c7cc9b5f5 Merge pull request #122 from jorgecarleitao/issue90
Fixed #90 - Adds support to fields "django_id" and "django_ct".
2014-05-16 23:32:34 +02:00