Commit graph

329 commits

Author SHA1 Message Date
David Sauve
4ea8271fb3 Changed the way int/long values are stored so that they are not serialised as xapian types. Instead, use 0 padded strings. 2009-08-28 10:42:58 -04:00
David Sauve
7c00117043 Fixed query string generation to work with NOT, gte, lte, lt, gt, and in. 2009-08-27 20:20:02 -04:00
David Sauve
891acf5927 Minor cleanup of test_search NOT operator to ensure consistency 2009-08-27 18:08:52 -04:00
David Sauve
6922b05f47 Better exclude query generation 2009-08-27 17:47:14 -04:00
David Sauve
225fa3f53b Added test for build_schema 2009-08-27 17:37:39 -04:00
David Sauve
d8b709a80c Revert "Reverted not ordering. Put back check to push not to the end of query string."
This reverts commit a7fe00c058.
2009-08-18 21:19:51 -04:00
David Sauve
a7fe00c058 Reverted not ordering. Put back check to push not to the end of query string. 2009-08-18 21:06:12 -04:00
David Sauve
3fd41552c3 Removed requirement stipulating first expression cannot be NOT. 2009-08-18 20:26:59 -04:00
David Sauve
2c406c7ace Allow exclude to work with in__ operator 2009-08-18 18:57:04 -04:00
David Sauve
c02e0ecc01 Small refactor to move flag generation back into it's own private method. This way, it can be used by query and narrow query generation with out repeating code. 2009-08-18 16:30:15 -04:00
David Sauve
bb38e1b83e Enable wildcard support on demand instead of always. Should reduce memory usage a bit. 2009-08-18 16:16:41 -04:00
David Sauve
c113c0face Fix to ensure multiple expression query strings that begin with NOT are parsed corectly. This also changes the default flags to only use FLAG_PURE_NOT when needed 2009-08-18 15:52:34 -04:00
David Sauve
c7c6b21e20 Added custom ExpandDecider. To be used in 'more_like_this' calls 2009-08-18 09:49:20 -04:00
David Sauve
6d2f4a53a7 Small change to MSetIter use. Using built in members instead of method calls 2009-08-18 08:56:35 -04:00
David Sauve
9cf9fe9e27 Updated date_facet to deal with changes in SHA d1a195 in Haystack. 2009-08-16 14:03:19 -04:00
David Sauve
9754ba0338 Updated to include build_schema method to deal with changes introduced in Haystack SHA 4f3af88c. BACKWARDS INCOMPATIBLE. 2009-08-16 11:40:47 -04:00
David Sauve
d31a875b46 Added support for additional_query_string in mlt 2009-08-14 19:06:23 -04:00
David Sauve
051fe7ddd4 Fixed bug in 'mlt'. Was using not allowing additional_query_string, start_offset, and end_offset params 2009-08-14 18:54:46 -04:00
David Sauve
fa3245d73d Added author and version entries to __init__ 2009-08-11 15:41:19 -04:00
David Sauve
a20ad426e5 Updated TODO 2009-08-11 09:28:37 -04:00
David Sauve
b42ac852d5 Better field facet implementation 2009-08-11 09:28:15 -04:00
David Sauve
648ca3a3d3 Added docstring for _do_query_facets 2009-08-11 08:49:45 -04:00
David Sauve
1a8e6d24b6 Implemented query facets 2009-08-11 08:42:42 -04:00
David Sauve
fdef0c5ed1 Updated TODO 2009-08-10 16:39:05 -04:00
David Sauve
6a82cb5e3c More date facet tests 2009-08-10 16:38:13 -04:00
David Sauve
5be650c426 Minor fix to date based facet 2009-08-10 16:34:29 -04:00
David Sauve
54ae6c3694 Initial date based query implementation. Actually working. 2009-08-10 16:12:59 -04:00
David Sauve
ea02d182ff Properly built date gaps. Still need to properly count 2009-08-08 08:00:54 -04:00
David Sauve
e517d3a1e1 resolved merge conflict 2009-08-07 19:46:04 -04:00
David Sauve
25eede14d8 Still working on date-based facets 2009-08-07 19:41:24 -04:00
David Sauve
d1715de84b More date facet updates. Not ready for merging by a long shot... 2009-08-07 16:47:49 -04:00
David Sauve
40863f7413 Roughed in the date_query facet. Not working yet. 2009-08-07 16:21:29 -04:00
David Sauve
10e1623890 Updated TODO 2009-08-07 16:00:48 -04:00
David Sauve
1ef902e849 Implemented boost 2009-08-07 15:58:36 -04:00
David Sauve
8015dd8297 Roughed in the date_query facet. Not working yet. 2009-08-07 14:22:40 -04:00
David Sauve
c496682895 Updated tests to work with latest changes in Haystack. 2009-08-07 08:12:15 -04:00
David Sauve
e90262b1e4 Added custom run and run_mlt methods to SearchQuery 2009-08-06 19:22:42 -04:00
David Sauve
69899cd215 Ascending and descinding sortin was inverted. Fixed. Also added a test to confirm float sorting is working as expected. 2009-08-06 09:03:03 -04:00
David Sauve
a6a1859029 Minor tweak to cleanup. Using shutil instead of iterating file objects 2009-08-05 16:44:12 -04:00
David Sauve
8e5fcfafed Fixed multiple filter query test 2009-08-05 09:29:34 -04:00
David Sauve
bc4f8a2be2 Better schema generation 2009-08-05 09:28:44 -04:00
David Sauve
1f84935b6b Minor adjustment to gt, gte, lt, lte query generation. gt was gte, lt was lte, and vice-versus. 2009-08-03 08:48:55 -04:00
David Sauve
e621a731b3 Fix for issue #12 -- Index Field with index=False raises KeyError 2009-08-03 08:47:19 -04:00
David Sauve
068a657bc9 Fixed query generation to match new value range processor expectation 2009-08-02 20:33:47 -04:00
David Sauve
e385129a6d Added support for gt, gte range queries 2009-08-02 20:32:19 -04:00
David Sauve
3841376be8 Added support for wildcard in lt, lte query 2009-08-02 20:14:51 -04:00
David Sauve
ec07836f05 Better range tests 2009-08-02 19:29:23 -04:00
David Sauve
503d70693e Removed _value_type_column method 2009-08-02 19:29:15 -04:00
David Sauve
dab6a32c07 Small update to XHValueRangeProcessor to ensure it also works with flot values 2009-08-02 14:38:33 -04:00
David Sauve
793e878cd3 Better value range processing. Now using a custom value range processor. 2009-08-02 14:34:24 -04:00