3792 Commits

Author SHA1 Message Date
Krunal Gandhi
f17f6f690e
allow fields containing sort keyword with range facets (#1730) 2024-05-14 08:22:29 -04:00
Harpreet Sangar
43a9bb75d1
Numeric iterator (#1709)
* Numeric filter iterator.

* Add test cases.

* Refactor.

* Float field filter iterator.
2024-05-13 04:34:52 +05:30
Harpreet Sangar
8d7def3eb9
Handle reference to an id field from an object array field. (#1721) 2024-05-10 18:34:57 +05:30
Krunal Gandhi
39cb7ba9ab
use filter_curated_hits to filter pinned_ids (#1711) 2024-05-07 20:34:23 -04:00
Dima Boger
d69c6a09c7
Add missing PUT endpoint for conversation model (#1704)
Co-authored-by: Kishore Nallan <kishorenc@gmail.com>
2024-05-06 04:21:41 -07:00
Kishore Nallan
0082c0f0da Rename the facet index type parameter to facet strategy. 2024-05-05 21:26:52 +05:30
Krunal Gandhi
2e926e87c8
fix per_page results for group_by (#1695) 2024-05-03 07:02:59 +05:30
Kishore Nallan
506ead9066 Expose facet_index_type parameter. 2024-05-02 04:08:55 +05:30
Kishore Nallan
14338ce491 Return metadata in collection summary response. 2024-04-30 22:45:38 +05:30
Ozan Armağan
4d9e8ab991 Fix not using follow up questions (#1693) 2024-04-30 04:20:31 +05:30
Kishore Nallan
f4a4aa1ca0 Refactor k value of id based vector search. 2024-04-30 01:14:27 +05:30
Kishore Nallan
58c81989c5 Really fix the regression in flat search cutoff. 2024-04-26 17:43:32 +05:30
Harpreet Sangar
397518cf37
Fix crash in sort by eval destructor. (#1685)
* Fix crash in sort by eval destructor.

* Add test for reference sort_by.
2024-04-25 14:24:05 +05:30
Krunal Gandhi
dccf6eb186
Do grouping in two pass (#1677)
* do grouping in two pass

* add hyperloglog count, use distinct_key in kv_map

* counter for groups found in current pass, update the tests

* increase hyperloglog threshold, refactor topster test
2024-04-24 22:25:58 +05:30
Lukas Laurinaitis
2dbbb43e94
Added config option max_per_page (#1577)
* Added limit page size parameter (#4)

* Added max_per_page in cofig

* added default topster size config

* removing const default_topster_size

* typo fix

* Update tests.yml

* few test fixes

* bug fix

* test fix

* added couple missing lines

* last test fix

* Added limit page size parameter (#5)

* Added max_per_page in cofig

* added default topster size config

* removing const default_topster_size

* typo fix

* Update tests.yml

* few test fixes

* bug fix

* test fix

* added couple missing lines

* last test fix

* few fixes after updates from origin

* restore default_topster_size parameter to const

* removing unrelated change and changing int to unsigned int

---------

Co-authored-by: Kishore Nallan <kishorenc@gmail.com>
2024-04-24 08:35:07 +05:30
Kishore Nallan
7c95ce43db Merge branch 'main' into v27 2024-04-23 19:33:19 +05:30
Kishore Nallan
36056fe68e Use 64K page size for jemalloc on arm64 / linux. 2024-04-23 19:32:53 +05:30
Harpreet Sangar
f1e64039d8
Include nested reference collections. (#1683)
* Fix `Collection::prune_ref_doc` segfault.

* Allow including nested collections if a reference to it is present.
2024-04-23 11:45:37 +05:30
Harpreet Sangar
495f91c467
Fix segfault on loading collection that is not referenced in other collection. (#1682) 2024-04-22 13:21:34 +05:30
Kishore Nallan
96127b234b Fix regression in flat search cutoff score compute. 2024-04-19 16:49:45 +05:30
Harpreet Sangar
fca277cbf2
Improve lazy not iterator perf (#1669)
* Refactor `is_valid(id)` logic.

* Fix `CollectionFilteringTest` and `CollectionJoinTest`.

* Refactor not equals iterator logic.

* Fix `CollectionJoinTest.SortByReference`.

* Fix `filter_result_iterator_t::contains_atleast_one`.

* Refactor `filter_result_iterator_t::and_filter_iterators`.

* Refactor `filter_result_iterator_t::contains_atleast_one`.

* Update `approx_filter_ids_length` in not equals.
2024-04-18 21:26:47 +05:30
Kishore Nallan
4a4e50b3c7 Allow zero number in float values during vector query by id. 2024-04-17 16:49:43 +05:30
Kishore Nallan
d811d62d8f Fix typo in doc del. 2024-04-11 16:17:03 +05:30
Kishore Nallan
f92116245b Limit length of query stored for analytics. 2024-04-11 11:02:00 +05:30
Krunal Gandhi
a23459af46
exclude non-indexed field for wildcard pattern (#1660) 2024-04-10 15:42:43 +05:30
Jason Bosco
d7b65d395d
Update README.md 2024-04-09 17:16:53 -05:00
Krunal Gandhi
c9618bf71e
return collections as per scoped key params (#1658)
* return collections as per scoped key params

* add test for wildcard

* update facet return parent test
2024-04-09 20:43:24 +05:30
Kishore Nallan
55ee87dfb2 Ensure that null valued nested keys are not persisted. 2024-04-08 17:22:45 +05:30
Kishore Nallan
ab9936f96b Add guards for null values for optional fields. 2024-04-07 21:10:35 +05:30
Kishore Nallan
39072af55b Fix test. 2024-04-07 17:28:48 +05:30
Kishore Nallan
e886b41494 Optimize prev token constraint for search. 2024-04-07 09:34:27 +05:30
Kishore Nallan
ec02d9fe9a Fix vector query by id returning k+1 hit. 2024-04-06 08:54:07 +05:30
Krunal Gandhi
15114a6c87
add boolean for enabling typos for alphanumeric tokens (#1651)
Co-authored-by: Kishore Nallan <kishorenc@gmail.com>
2024-04-05 14:25:28 +05:30
Kishore Nallan
5f3b3684b2 Add test for wildcard vector query + eval. 2024-04-04 22:49:44 +05:30
Kishore Nallan
3d4ad20bba Merge branch 'main' into v27
# Conflicts:
#	include/collection.h
#	include/index.h
2024-04-04 16:07:54 +05:30
Kishore Nallan
9a6ef3cbe4 Fix eval + hybrid search. 2024-04-04 14:29:32 +05:30
Krunal Gandhi
459d9149f6
update non-counter event rule (#1643)
* update non-counter event rule

* update indents
2024-04-03 15:27:42 +05:30
Jason Bosco
21bab60f05
Update README.md 2024-04-01 19:35:53 -05:00
Jason Bosco
7ae8a9b612
Update README.md 2024-04-01 18:59:04 -05:00
Kishore Nallan
5a6d2b385a Merge branch 'v0.26-facets' v26.0 2024-04-01 18:00:09 +05:30
Kishore Nallan
4328ee359c Add cli flag for enabling lazy filter. Disable by default. 2024-03-30 22:31:34 +05:30
Kishore Nallan
e7f9bd30bd Merge branch 'v0.26-facets' into v27
# Conflicts:
#	include/collection.h
#	include/index.h
#	src/collection.cpp
#	src/collection_manager.cpp
#	src/index.cpp
#	test/collection_synonyms_test.cpp
2024-03-30 16:44:57 +05:30
Kishore Nallan
c1b49ef0b9 Add flag for lazy filtering. 2024-03-30 15:30:10 +05:30
Kishore Nallan
9c0ca02812 Return range_index property when enabled. 2024-03-29 22:32:28 +05:30
Ozan Armağan
d330e32638
Fix stemming resolved synonyms (#1638) 2024-03-28 07:18:36 +05:30
Harpreet Sangar
f05c113e65
Update reference include_fields syntax. (#1636) 2024-03-27 16:23:54 +05:30
Krunal Gandhi
48de03e2f3
add test - multiple facets with parent (#1634) 2024-03-26 14:54:06 +05:30
Krunal Gandhi
b666244ce1 add events in get response (#1632)
* add events in get response

* add counter_field in response, add test
2024-03-25 18:36:26 +05:30
Krunal Gandhi
64f6d77571
add events in get response (#1632)
* add events in get response

* add counter_field in response, add test
2024-03-25 18:10:28 +05:30
Harpreet Sangar
e19b43ed3a
Fix Collection::object_reference_helper_fields not initializing on snapshot load. (#1630) 2024-03-23 15:09:55 +05:30