Commit graph

252 commits

Author SHA1 Message Date
David Sauve
3752844e4a Fix for date facet when gap by month amount is larger than 1 2009-12-04 20:45:36 -05:00
David Sauve
f1b7c04c12 Only thing missing now is query_facets 2009-12-04 20:30:26 -05:00
David Sauve
1fe78fc384 __lt is working 2009-12-04 16:44:36 -05:00
David Sauve
999800e4a8 __gt is working 2009-12-04 16:41:41 -05:00
David Sauve
253382b41a __startswith has been implemented in new branch 2009-12-04 15:41:32 -05:00
David Sauve
4ea6f5eda1 Added parse_query utility method for SearchBackend. This takes a query_string and attempts to convert it to a xapian.Query for use by search 2009-12-04 14:42:06 -05:00
David Sauve
da34c32849 Added LiveLiveXapianSearchQueryTestCase 2009-12-04 14:16:08 -05:00
David Sauve
8ed2e9196e Removed commented code block 2009-12-04 10:33:29 -05:00
David Sauve
617f623b6b Order by is working 2009-12-04 10:27:23 -05:00
David Sauve
ae58bf85d2 field and date facets working 2009-12-04 09:13:10 -05:00
David Sauve
012ba98ed1 Added limit_to_registered_models in mlt 2009-12-03 16:48:21 -05:00
David Sauve
585ccfdac7 More like this is working 2009-12-03 16:40:33 -05:00
David Sauve
ccde83ff8c Highlighting is working again 2009-12-03 13:49:26 -05:00
David Sauve
a6e7670973 Added spelling suggestion 2009-12-03 12:20:04 -05:00
David Sauve
60e8925280 Changed is not to is when testing for list, tuple. Silly style thing. 2009-12-03 10:21:03 -05:00
David Sauve
4bff8c9376 Split marshalling into two methods: marshal_term and marshal_value as they should be done differently 2009-12-03 09:38:49 -05:00
David Sauve
c2e33da295 Removed a bunch of search tests that were testing various query_string combinations. These are no longer relevant. 2009-12-02 15:05:53 -05:00
David Sauve
6ffeb96090 Removed SearchBackend.delete_index. Is not part of the API. 2009-12-02 13:35:00 -05:00
David Sauve
8b88e544b3 SearchBackend.clear confirmed working 2009-12-02 13:12:40 -05:00
David Sauve
166f2b2109 SearchBackend.remove is also working 2009-12-02 13:11:57 -05:00
David Sauve
8351f79326 SearchBackend.update is working again 2009-12-02 13:10:30 -05:00
David Sauve
4b0f6520f1 Re-added xapian_backend tests. This is in a really rough state right now. Most tests are commented out. 2009-12-02 11:47:26 -05:00
David Sauve
c6dd7b5deb Updated to GPLv3 to maintain compatibility with Apache license 2009-12-01 15:55:22 -05:00
David Sauve
2dd8104abf Added some docstrings to private methods that should make their uses more apparent 2009-12-01 09:19:30 -05:00
David Sauve
d197014a82 Added support for not in 'in' based queries 2009-12-01 09:11:01 -05:00
David Sauve
09c12d88f7 Refactored some of the comon bits of query generation for phrase, all, and term based queries. Fixed 'in' based queries 2009-12-01 08:58:34 -05:00
David Sauve
f027e26644 More refactor to keep things DRY 2009-11-30 16:49:47 -05:00
David Sauve
bbb38e3ef6 Small refactor to make even 'exact' more DRY 2009-11-30 16:36:29 -05:00
David Sauve
2065ecee7f Small refactor to make 'exact'more DRY 2009-11-30 16:34:40 -05:00
David Sauve
99de351c79 Some minor formatting tweaks to code 2009-11-30 16:20:05 -05:00
David Sauve
2e3ed62c02 A whole lot of work on phrase and not operators. 2009-11-30 16:10:46 -05:00
David Sauve
12a7008777 Added a comment explaining the pure boolean subquery line 2009-11-30 06:26:34 -05:00
David Sauve
184f10af2d Converted model filtering to use pure boolean subquery 2009-11-29 19:12:59 -05:00
David Sauve
2a4b32f03b SearchQuery now supports model filtering 2009-11-29 17:06:29 -05:00
David Sauve
7dd36f47d8 Removed RESERVED_WORDS and RESERVED_CHARACTERS 2009-11-29 16:31:13 -05:00
David Sauve
3cacb54cf5 Added term boosting 2009-11-29 16:05:36 -05:00
David Sauve
e9f2064454 Added tests for boolean query and datetime query. Also added test for phrase query. 2009-11-28 18:55:11 -05:00
David Sauve
1ce5b2ca14 Merged more master changes into next 2009-11-28 12:34:21 -05:00
David Sauve
500664a2e4 Merged master changes into next 2009-11-28 12:31:03 -05:00
David Sauve
bff2a62f93 Small cleanup of unused cruft in SearchQuery 2009-11-19 15:06:12 -05:00
David Sauve
8987c532c6 Cleaned up setUp an tearDown 2009-11-19 15:05:30 -05:00
David Sauve
b94eee10c5 Remove unused build_sub_query method 2009-11-13 11:48:16 -05:00
David Sauve
cf18ed2b90 Merge branch 'experimental' of github.com:notanumber/xapian-haystack into experimental 2009-11-13 10:02:03 -05:00
David Sauve
91c58304f0 Six passing tests. Combining AND, OR, NOT works. 2009-11-13 10:01:16 -05:00
David Sauve
537b1802a3 Five tests. OR operator now working 2009-11-13 10:01:16 -05:00
David Sauve
09ffc6d481 Four tests passing now. Recursively parsing the search nodes and negated on NOT as required. 2009-11-13 10:01:15 -05:00
David Sauve
35f51e97bc Passing three tests. Empty query, single content value, multi-content values 2009-11-13 10:01:15 -05:00
David Sauve
529edc24b4 Passing first two tests... 2009-11-13 10:01:15 -05:00
David Sauve
30bc0d0805 More refactor work 2009-11-13 10:01:15 -05:00
David Sauve
c89addc959 Work on refactoring. Eliminated a lot of useless code and started to implement build_query using xapian.Query 2009-11-13 10:01:15 -05:00