Commit Graph

382 Commits

Author SHA1 Message Date
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
e8352855a2 Fixed narrow_queries in mlt. This one should also be a set() 2009-11-27 11:33:13 -05:00
David Sauve
77a3757777 Updated AUTHORS with askfor 2009-11-26 16:23:42 -05:00
David Sauve
482e432578 Updated search to accept a set for instead of a list 2009-11-26 16:18:07 -05:00
David Sauve
1c198ba914 Added tests for exatc match 2009-11-25 08:40:10 -05:00
David Sauve
53f124ebeb Removed SearchQuery.run and SearchQuery.run_mlt. These methods were identical to the base class versions except for an error with offset calculcations 2009-11-22 10:57:34 -05:00
David Sauve
de765ba1d5 Dropped DEFAULT_MAX_RESULTS. Will now query the database for the max document count prior to searching if end_offset is not given. 2009-11-22 10:50:21 -05:00
David Sauve
6bdcfaba8f Cleanup test setUp and tearDown 2009-11-21 11:55:10 -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
David Sauve
8c61cdc9c2 More changes to build_query 2009-11-13 10:01:14 -05:00
David Sauve
3334b94349 Started work in refactor 2009-11-13 10:01:14 -05:00
David Sauve
d6a24ef33c Six passing tests. Combining AND, OR, NOT works. 2009-11-13 10:00:37 -05:00
David Sauve
d7e606f0d5 Five tests. OR operator now working 2009-11-13 10:00:37 -05:00
David Sauve
3c42660a47 Four tests passing now. Recursively parsing the search nodes and negated on NOT as required. 2009-11-13 10:00:37 -05:00
David Sauve
3280b89d73 Passing three tests. Empty query, single content value, multi-content values 2009-11-13 10:00:37 -05:00
David Sauve
ef70ade65a Passing first two tests... 2009-11-13 10:00:36 -05:00
David Sauve
9b3b6d0b02 More refactor work 2009-11-13 10:00:36 -05:00
David Sauve
df46eea292 Work on refactoring. Eliminated a lot of useless code and started to implement build_query using xapian.Query 2009-11-13 10:00:36 -05:00
David Sauve
8cfde151dd More changes to build_query 2009-11-13 10:00:36 -05:00
David Sauve
c7744fee70 Started work in refactor 2009-11-13 10:00:36 -05:00
David Sauve
c92e8c7c7b Six passing tests. Combining AND, OR, NOT works. 2009-11-13 09:59:00 -05:00
David Sauve
a96ed9e216 Five tests. OR operator now working 2009-11-13 09:59:00 -05:00
David Sauve
84988c69f3 Four tests passing now. Recursively parsing the search nodes and negated on NOT as required. 2009-11-13 09:58:59 -05:00
David Sauve
5905909b7c Passing three tests. Empty query, single content value, multi-content values 2009-11-13 09:58:59 -05:00
David Sauve
ac11ba627b Passing first two tests... 2009-11-13 09:58:58 -05:00
David Sauve
96f16cb4e6 More refactor work 2009-11-13 09:58:58 -05:00
David Sauve
555b13a5de Work on refactoring. Eliminated a lot of useless code and started to implement build_query using xapian.Query 2009-11-13 09:58:58 -05:00
David Sauve
30a8f8fc0c More changes to build_query 2009-11-13 09:58:57 -05:00
David Sauve
44bb6c6f48 Started work in refactor 2009-11-13 09:58:57 -05:00