Commit graph

561 commits

Author SHA1 Message Date
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
6a59513e9b Removed unnecessary requirement and bumped Django version. 2014-09-11 18:58:45 +02:00
Jorge C. Leitão
26fbee4703 Merged two commands in travis conf. 2014-09-11 18:46:34 +02: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
9d5e637ca0 Moved constant to top of the file. 2014-05-23 09:37:22 +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
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
85cf58064f Merged branch 'issue123' - Adds compatibility to Haystack 2.X. 2014-05-21 07:16:12 +02:00
Jorge C. Leitão
ba0b0c8a69 Merged branch 'master'. 2014-05-21 07:07:50 +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
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
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
jorgecarleitao
1ecf687d56 Merge pull request #127 from jorgecarleitao/issue123
Fixed #123 - improves Xapian usability with Haystack.
2014-05-20 03:45:38 +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
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
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
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