Commit Graph

339 Commits

Author SHA1 Message Date
Matthias Portzel ffde9b14ed Merge branch 'master' of https://github.com/notanumber/xapian-haystack 2022-04-04 10:30:09 -04:00
AJ Slater 870b48dfcd
Management Command Database Locking 2022-02-10 20:44:21 +01:00
Matthias Portzel 4bcb3efa70 Merge branch 'master' of https://github.com/notanumber/xapian-haystack 2022-02-08 12:14:52 -05:00
Claude Paroz 65adf90601 Remove obsolete comment backend docstring.
xapian issue #364 is solved in xapian 1.3+.
2022-02-05 10:56:25 +01:00
MatthiasSaihttam 0be3ed9f72 Merge branch 'master' of https://github.com/notanumber/xapian-haystack 2021-12-21 23:59:28 -08:00
Claude Paroz eb2797aa19 Remove force_text usage 2021-11-12 10:36:53 +01:00
Martin Owens 65b5329c16 Add Xapian Omega solution to haystack backend to fix long term issues 2021-11-03 21:22:10 -04:00
Alejandro R. Sedeño ef1dc87368 drop _old_xapian_sort 2021-09-26 18:04:08 +02: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
Claude Paroz 90f5bc8c14 Simplified super() calls 2021-08-17 23:22:19 +02:00
Claude Paroz 0f9d94fb23 Dropped Python 2 support 2021-08-09 19:03:53 +02:00
László Károlyi f1861fc5e7
Fix PY2 error 2018-03-26 04:36:28 +02:00
László Károlyi 3c322a9552 Fixing untrustable os.path.exists
As per https://stackoverflow.com/a/3112717/1067833,
os.path.exists sometimes delivers a wrong value. These are corner
cases, but mine is exactly one:

I run xapian-haystack in a multiprocess environment (indexing and
django server), on an LXC container, which has its mount probably
mounted from an NFS server (I have no control/information over it).

This corner case results the os.path.exists give `True` for one
process and `False` for another, resulting in the exception I
handle with this patch.
2017-10-28 08:36:38 +02:00
Claude Paroz 253c4c2898 Revert "Removed compatibility argument with pre-2.0 haystack"
This reverts commit d3f1e011da.
2017-05-18 08:50:23 +02:00
Alex Sandro 390d6344cf Dynamically configuring reserved fields. 2017-03-01 10:47:04 +01:00
Alex Sandro 8568e49b8f Correction from the exact to the reserved field django_ct (he was being treated with a phrase.). 2017-03-01 10:47:04 +01:00
Alex Sandro 02acc62824 Configuring 'limit_to_registered_models' according to doc haystack. 2017-03-01 10:47:04 +01:00
Claude Paroz 79a00865aa Removed workaround for old Django 2017-03-01 10:18:05 +01:00
Claude Paroz d3f1e011da Removed compatibility argument with pre-2.0 haystack 2017-02-14 09:49:19 +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
Jorge C. Leitão cec243cffd Fixed #128 -- Added support to Python 3. 2015-11-14 12:37:43 +01:00
Jorge C. Leitão 4fc3d749c8 Added support to new API of Xapian to sort results. 2015-11-13 21:03:53 +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
Alexander Olekhnovich 6756b685f1 Added commit argument to remove 2015-10-28 13:13:25 +03:00
Viorel Stirbu a3a3a4e7cf Added commit argument to update
update has now the same signature as in Django-Haystack.
2015-04-16 21:43:59 +02:00
Claude Paroz 89f05790b1 Fixed #148 -- Added compatibility for Django 1.8
Thanks Ben Cole for the report.
2015-04-16 19:05:38 +02:00
Jürg Rast 3e8611265e Catched AttributeError for old Xapian versions. 2015-01-12 22:35:17 +01:00
Jürg Rast 82ba90b6a6 Fixed #141 -- Added configuration setting for stemming strategy. 2015-01-12 22:35:07 +01: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 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 9d5e637ca0 Moved constant to top of the file. 2014-05-23 09:37:22 +02:00
Jorge C. Leitão bbd408ba89 Simplified some code and improved termpos handling in update. 2014-05-22 19:16:37 +02:00
Jorge C. Leitão ec0d7091fc Added missing changes of previous commit. 2014-05-22 10:06:24 +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 48cec5202d Refactored _query_from_search_node into two menthods. 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 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 453129d60e Simplified code. 2014-05-18 17:09:40 +02:00
Jorge C. Leitão 107e81be2d Fixed code error (tests were not passing). 2014-05-18 17:09:40 +02:00
Jorge C. Leitão bb74dae2c0 Improved how queries are constructed. 2014-05-18 17:09:40 +02:00
Jorge C. Leitão 552786b6ec Changed backend column method to a property. 2014-05-18 17:09:40 +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 e85b503aaa Changed variable name inside a function. 2014-05-18 14:17:24 +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