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
f2b9c062a6
Fixed #56 - Implements single valued field facets using Xapian.
...
Replaces the brute force _do_field_facets with
Xapian faceting for single valued facets.
Xapian does not support multi valued facets yet; thus
the brute force is used in this case.
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
d06da45d9d
Simplified construction of Xapian queries.
2014-05-18 09:55:22 +02:00
Jorge C. Leitão
5d16d1aca7
Fixed #101 - Adds support to AutoQuery.
2014-05-18 09:49:11 +02:00
Jorge C. Leitão
4d51f5e9af
Fixed #98 - queries are now consistent with Haystack 2.X.
...
Refactored _filter_contains query constructor.
2014-05-18 09:49:11 +02:00
Jorge C. Leitão
89691ce86a
Added method to create OR queries from list of strings.
2014-05-18 09:49:11 +02:00
Jorge C. Leitão
99dc011a25
Refactored _filter_in query constructor.
2014-05-18 09:49:10 +02:00
Jorge C. Leitão
2969a74953
Refactored _filter_exact query constructor.
...
Its interface is explained in the docstring.
2014-05-18 09:49:10 +02:00
Jorge C. Leitão
83d10b6cc1
Refactored _filter_startswith query constructor.
...
Its interface is explained in the docstring.
2014-05-18 09:49:10 +02:00
Jorge C. Leitão
7e09d3d0b1
Refactored _phrase_query query constructor.
...
Its interface is explained in the docstring.
2014-05-18 09:49:10 +02:00
Jorge C. Leitão
e7dfbae41f
Refactored _term_query query constructor.
...
Its interface is explained in the docstring.
2014-05-18 09:49:10 +02:00
Jorge C. Leitão
98949009ab
Modified how the query construction methods are chosen.
...
- "content" is a special field with generic search,
but now allow filters.
- parameter field_type is now retrieved from the backend and
passed to the construction methods.
2014-05-18 09:49:10 +02:00
Jorge C. Leitão
f21e2c373c
Added new argument on methods to build queries.
...
This allows more flexibility on constructing the queries.
For now the argument is not used.
2014-05-18 09:49:10 +02:00
Jorge C. Leitão
83bd8ee3e5
Reordered methods position in XapianSearchQuery.
...
Also removed two @staticmethod.
2014-05-18 09:49:10 +02:00
Jorge C. Leitão
93522bbd56
Changed name of variable from "field" to "field_name".
2014-05-18 09:49:09 +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
Jorge C. Leitão
6d69d48d1b
Fixed #110 - fixed ENGINE path in the README.
...
Thanks to miracle2k for the patch.
2014-05-16 23:54:42 +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
jorgecarleitao
cb6cd20745
Merge pull request #121 from jorgecarleitao/issue112
...
Fixed #112 - more_like_this raises InvalidIndexError for unindexed instance.
This doesn't happen if silently_fail is True, in which case it returns
an empty result. Added test to cover both cases.
2014-05-16 18:49:15 +02:00
Jorge C. Leitão
01805d08f8
Fixed #112 - more_like_this raises InvalidIndexError for unindexed instance.
...
This doesn't happen if silently_fail is True, in which case returns
an empty result. Added test to cover both cases.
2014-05-15 08:26:33 +02:00
Jorge C. Leitão
61a68f3e27
Refactored xapian_backend.update.
...
Removed repeated code.
2014-05-14 23:21:43 +02:00
Jorge C. Leitão
d22eb8d3f4
Refactored code.
...
Avoided starting TermGenerator for each object being indexed.
2014-05-14 23:13:39 +02:00
Jorge C. Leitão
afb9958c4f
Fixed #90 - Added fields django_id and django_ct.
...
- Fields are not fully indexed because they are not text.
- Added test of order_by django_id.
- Simplified code for updating index.
2014-05-14 21:34:39 +02:00
jorgecarleitao
65c6e9a71b
Fixed #114 - README now asks to install from master.
2014-05-13 21:07:14 +02:00
jorgecarleitao
4e2843ed00
Updated README.rst to notanumber rep
2014-05-13 20:25:13 +02:00
Jorge C. Leitão
bd034e3838
Improved README.
2014-05-11 22:36:35 +02:00
Jorge C. Leitão
6ed8569ef3
Made minor fixes related to code maintenance.
2014-05-11 21:02:47 +02:00
Jorge C. Leitão
a7fdb8b291
Replaced force_unicode to force_text to Python3.
2014-05-11 20:27:24 +02:00
Jorge C. Leitão
3adaa23ef2
Dropped usage of cPickle to use just pickle.
2014-05-11 20:15:28 +02:00
Jorge C. Leitão
a7082c9127
Added travis CI to code.
2014-05-11 19:55:10 +02:00
Jorge C. Leitão
2a0ec53374
Moved prefixed test modules with "test_" so they can be found.
2014-05-11 18:23:01 +02:00
Jorge C. Leitão
a4b10dd31d
Migrated strings to Python3 using unicode_literal.
2014-05-11 17:50:48 +02:00
Jorge C. Leitão
0d67bfb00b
Simplified some conditions in the code.
2014-05-11 17:22:44 +02:00
Jorge C. Leitão
59cd25789a
Fixed error that was causing test to pass due to assert(True).
2014-05-11 17:06:18 +02:00
Jorge C. Leitão
b28a80b420
Fixed error that was causing a test to fail.
2014-05-11 17:05:47 +02:00
Jorge C. Leitão
9bf34a936d
Simplifed tests code by removing duplicate code.
2014-05-11 16:24:23 +02:00
Jorge C. Leitão
966d16588c
Simplified tests and added documentation.
2014-05-11 16:21:09 +02:00
Jorge C. Leitão
024e10715b
Removed _meta calls by using the haystack 'get_model_ct'.
2014-05-11 16:20:57 +02:00
Jorge C. Leitão
7385322ec4
Fixed error on test case.
2014-05-11 09:57:19 +02:00
Jorge C. Leitão
0551f00dd7
Removed minor unused code in tests.
2014-05-11 09:32:43 +02:00
Jorge C. Leitão
4874fffc3d
Removed _meta calls by using the haystack 'get_model_ct'.
2014-05-11 09:21:50 +02:00
Jorge C. Leitão
5ef9ceb192
Improved backend interface and removed repeated loop.
2014-05-11 07:49:52 +02:00
Jorge C. Leitão
e0744a2856
Improved further the test for issue #2 .
2014-05-11 00:06:05 +02:00
Jorge C. Leitão
6fd59d2d67
Fixed #2 by making indexing of ID distinct from others.
2014-05-11 00:05:45 +02:00
Jorge C. Leitão
d3a1bc67e4
Added test validating issue #2 .
2014-05-10 23:46:38 +02:00
Jorge C. Leitão
c24abd182b
Fixed #1 by making ID to be parsed as a non-text.
2014-05-10 23:33:31 +02:00
Jorge C. Leitão
f81ba0021c
Fixed error on get_terms that caused the last term to end in '\n'.
2014-05-10 23:24:17 +02:00