149 Commits

Author SHA1 Message Date
Kishore Nallan
aa9945c3c0 Implemented filter on a single int32 value. 2017-02-12 12:51:28 +05:30
Kishore Nallan
60cc05fe52 Fixed a bug in bulk indexOf forarray search. 2017-02-10 10:47:33 +05:30
Kishore Nallan
645355067a Don't initialize leaf_to_indices map for single token queries. 2017-02-08 08:20:21 +05:30
Kishore Nallan
c115c2c4a4 Use multi-key binary search to convert document IDs to corresponding indices.
Improved performance by 7x.
2017-02-07 22:42:58 +05:30
Kishore Nallan
536e605a35 Union for sorted array. 2017-02-05 17:38:04 +05:30
Kishore Nallan
c497623a36 Merge branch 'master' of github.com:wreally/typesense
# Conflicts:
#	include/sorted_array.h
#	src/collection.cpp
#	src/sorted_array.cpp
#	test/sorted_array_test.cpp
2017-02-04 21:37:02 +05:30
Kishore Nallan
3ef10b5bb0 Fix ordering of sequence id rocksdb keys. 2017-02-04 21:32:24 +05:30
Kishore Nallan
b880cfd531 Refactor forarray - split into individual classes. 2017-02-04 16:27:07 +05:30
Kishore Nallan
2051ac6c2f Refactor forarray - split into individual classes. 2017-02-04 12:25:53 +05:30
Kishore Nallan
8d5cd6b624 Add to gitignore. 2017-02-04 09:53:08 +05:30
Kishore Nallan
fc532b9025 Clean build directly only when explicitly called for. 2017-02-04 08:25:56 +05:30
Kishore Nallan
cab0b36699 Skeleton for filter support. 2017-02-02 09:20:06 +05:30
Kishore Nallan
431fd70fce Fix collection manager tests. 2017-02-02 08:39:01 +05:30
Kishore Nallan
4e468fb0b9 Index and search on multi-valued numeric field. 2017-01-28 20:32:42 -06:00
Kishore Nallan
385e8cb7a2 Index and search on multi-valued string field. 2017-01-28 10:37:46 -06:00
Kishore Nallan
22816ea0a0 Test for dropping a collection. 2017-01-27 06:36:22 -06:00
Kishore Nallan
8475cba007 Minor refactoring of collection manager. 2017-01-26 13:54:30 -06:00
Kishore Nallan
216ac7997a Restore in-memory index on restart. 2017-01-24 22:13:49 -05:00
Kishore Nallan
342ed2bab2 Test for multi field search. 2017-01-22 19:35:57 -05:00
Kishore Nallan
ce990ecb57 Fix documents.jsonl path in tests. 2017-01-22 22:19:56 +05:30
Kishore Nallan
a6cacf19d0 Return total number of results found in the API. 2017-01-22 21:39:46 +05:30
Kishore Nallan
3339fdeec0 Added tests for int64 search. 2017-01-22 07:06:35 +05:30
Kishore Nallan
da68fb17e8 Support LESS_THAN and GREATER_THAN. 2017-01-22 05:40:10 +05:30
Kishore Nallan
af8e8ba460 No special trailing character is required when int is serialized since all strings of equal length. 2017-01-19 23:54:43 +05:30
Kishore Nallan
ef1364a23e Fix build errors. 2017-01-19 23:48:22 +05:30
Kishore Nallan
0fcdb6b479 Support signed ints in art int search. 2017-01-12 21:20:52 +05:30
Kishore Nallan
85d64608fd Comment out redundant print statements. Will have to replace with proper logging lib later. 2017-01-11 21:48:36 +05:30
Kishore Nallan
da263b69ea Stable sort does not require key comparison. 2017-01-11 21:47:28 +05:30
Kishore Nallan
c302acb159 Added a basic benchmark. 2017-01-11 20:48:04 +05:30
Kishore Nallan
554534f406 Added more todo. 2017-01-11 20:44:16 +05:30
Kishore Nallan
a67e8f4caa Refactor - use std::tie for comparator. 2017-01-11 20:43:55 +05:30
Kishore Nallan
b7654baa74 Persist collection's next_seq_id. 2017-01-09 22:14:06 +05:30
Kishore Nallan
ce471c9bb1 Keep the hashset bounded by deleting the element to be replaced in heap from the set. 2017-01-09 19:17:53 +05:30
Kishore Nallan
3e8f9298a9 Remove redundant string conversion for collection_id. 2017-01-08 22:02:35 +05:30
Kishore Nallan
d831c49817 Move duplicate ID detection right inside topster. 2017-01-08 21:44:36 +05:30
Kishore Nallan
2f08eca12e Initial sketch for persisting meta information about collections. 2017-01-08 19:47:17 +05:30
Kishore Nallan
2b6293650e Search across multiple fields.
Need to write more tests.
2017-01-01 19:56:26 +05:30
Kishore Nallan
54a60398ab Parameterize rank fields. 2016-12-29 21:45:38 +05:30
Kishore Nallan
473aa6d5f6 Basic test for topster. 2016-12-28 21:28:27 +05:30
Kishore Nallan
0b88e669f6 Make ART fuzzy_search take min_cost and max_cost instead of only max_cost. 2016-12-28 18:16:43 +05:30
Kishore Nallan
8aaa9b174f Allow use of custom primary and secondary attributes for ranking. 2016-12-23 21:07:53 +05:30
Kishore Nallan
12276b651f Base work for supporting multiple indexable fields. 2016-12-22 22:26:33 +05:30
Kishore Nallan
9b0c347334 ART - integer range search. 2016-12-11 13:47:43 +05:30
Kishore Nallan
9cc3e7e5ea Fixed a bug in pagination. 2016-11-27 21:30:13 +05:30
Kishore Nallan
17a7297384 Fix prefix based searches.
Also, fixed a bug with duplicate document IDs..
2016-11-27 19:57:29 +05:30
Kishore Nallan
e1526319f7 Building up support for prefix based searching and for ranking token suggestions by either frequency or max_score. 2016-11-27 14:56:15 +05:30
Kishore Nallan
db22d01b84 Added an ART search token cache.
To cache previous searches so that we don't repeatedly call ART search as we iterate through the correction.
2016-11-26 17:57:05 +05:30
Kishore Nallan
4e10fadeb7 Settle for partial matches when the whole query produces no results. 2016-11-26 17:13:16 +05:30
Kishore Nallan
396e10be5d Refactor collection's search method to be more judicious in using higher costs.
Earlier, even if one token produced no result, ALL tokens were searched with a higher cost. This change ensures that we first retry only the token that did not produce results with a larger cost before doing the same for other tokens.
2016-11-24 21:39:20 +05:30
Kishore Nallan
44d55cb13d Fixed a search issue: tokens that are not found in the index should be skipped. 2016-11-19 16:56:59 +05:30