Tamo 
							
						 
					 
					
						
						
							
						
						f156d7dd3b 
					 
					
						
						
							
							Stop reindexing already indexed documents  
						
						
						
						
					 
					
						2022-08-02 10:31:20 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						07003704a8 
					 
					
						
						
							
							Merge branch 'filter/field-exist'  
						
						
						
						
					 
					
						2022-07-21 14:51:41 +02:00 
						 
				 
			
				
					
						
							
							
								Clémentine Urquizar 
							
						 
					 
					
						
						
							
						
						d5e9b7305b 
					 
					
						
						
							
							Update version for next release (v0.32.0)  
						
						
						
						
					 
					
						2022-07-21 13:20:02 +04:00 
						 
				 
			
				
					
						
							
							
								ManyTheFish 
							
						 
					 
					
						
						
							
						
						cbb3b25459 
					 
					
						
						
							
							Fix(Search): Fix phrase search candidates computation  
						
						... 
						
						
						
						This bug is an old bug but was hidden by the proximity criterion,
Phrase search were always returning an empty candidates list.
Before the fix, we were trying to find any words[n] near words[n]
instead of finding  any words[n] near words[n+1], for example:
for a phrase search '"Hello world"' we were searching for "hello" near "hello" first, instead of "hello" near "world". 
						
						
					 
					
						2022-07-21 10:04:30 +02:00 
						 
				 
			
				
					
						
							
							
								bors[bot] 
							
						 
					 
					
						
						
							
						
						941af58239 
					 
					
						
						
							
							Merge  #561  
						
						... 
						
						
						
						561: Enriched documents batch reader r=curquiza a=Kerollmops
~This PR is based on #555  and must be rebased on main after it has been merged to ease the review.~
This PR contains the work in #555  and can be merged on main as soon as reviewed and approved.
- [x] Create an `EnrichedDocumentsBatchReader` that contains the external documents id.
- [x] Extract the primary key name and make it accessible in the `EnrichedDocumentsBatchReader`.
- [x] Use the external id from the `EnrichedDocumentsBatchReader` in the `Transform::read_documents`.
- [x] Remove the `update_primary_key` from the _transform.rs_ file.
- [x] Really generate the auto-generated documents ids.
- [x] Insert the (auto-generated) document ids in the document while processing it in `Transform::read_documents`.
Co-authored-by: Kerollmops <clement@meilisearch.com > 
						
						
					 
					
						2022-07-21 07:08:50 +00:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						41a0ce07cb 
					 
					
						
						
							
							Add a code comment, as suggested in PR review  
						
						... 
						
						
						
						Co-authored-by: Many the fish <many@meilisearch.com > 
						
						
					 
					
						2022-07-20 16:20:35 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						1506683705 
					 
					
						
						
							
							Avoid using too much memory when indexing facet-exists-docids  
						
						
						
						
					 
					
						2022-07-19 14:42:35 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						d0eee5ff7a 
					 
					
						
						
							
							Fix compiler error  
						
						
						
						
					 
					
						2022-07-19 13:54:30 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						aed8c69bcb 
					 
					
						
						
							
							Refactor indexation of the "facet-id-exists-docids" database  
						
						... 
						
						
						
						The idea is to directly create a sorted and merged list of bitmaps
in the form of a BTreeMap<FieldId, RoaringBitmap> instead of creating
a grenad::Reader where the keys are field_id and the values are docids.
Then we send that BTreeMap to the thing that handles TypedChunks, which
inserts its content into the database. 
						
						
					 
					
						2022-07-19 10:07:33 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						1eb1e73bb3 
					 
					
						
						
							
							Add integration tests for the EXISTS filter  
						
						
						
						
					 
					
						2022-07-19 10:07:33 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						4f0bd317df 
					 
					
						
						
							
							Remove custom implementation of BytesEncode/Decode for the FieldId  
						
						
						
						
					 
					
						2022-07-19 10:07:33 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						80b962b4f4 
					 
					
						
						
							
							Run cargo fmt  
						
						
						
						
					 
					
						2022-07-19 10:07:33 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						c17d616250 
					 
					
						
						
							
							Refactor index_documents_check_exists_database tests  
						
						
						
						
					 
					
						2022-07-19 10:07:33 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						30bd4db0fc 
					 
					
						
						
							
							Simplify indexing task for facet_exists_docids database  
						
						
						
						
					 
					
						2022-07-19 10:07:33 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						392472f4bb 
					 
					
						
						
							
							Apply suggestions from code review  
						
						... 
						
						
						
						Co-authored-by: Tamo <tamo@meilisearch.com > 
						
						
					 
					
						2022-07-19 10:07:33 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						0388b2d463 
					 
					
						
						
							
							Run cargo fmt  
						
						
						
						
					 
					
						2022-07-19 10:07:33 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						dc64170a69 
					 
					
						
						
							
							Improve syntax of EXISTS filter, allow “value NOT EXISTS”  
						
						
						
						
					 
					
						2022-07-19 10:07:33 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						72452f0cb2 
					 
					
						
						
							
							Implements the EXIST filter operator  
						
						
						
						
					 
					
						2022-07-19 10:07:33 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						453d593ce8 
					 
					
						
						
							
							Add a database containing the docids where each field exists  
						
						
						
						
					 
					
						2022-07-19 10:07:33 +02:00 
						 
				 
			
				
					
						
							
							
								Many the fish 
							
						 
					 
					
						
						
							
						
						2d79720f5d 
					 
					
						
						
							
							Update milli/src/search/matches/mod.rs  
						
						
						
						
					 
					
						2022-07-18 17:48:04 +02:00 
						 
				 
			
				
					
						
							
							
								Many the fish 
							
						 
					 
					
						
						
							
						
						8ddb4e750b 
					 
					
						
						
							
							Update milli/src/search/matches/mod.rs  
						
						
						
						
					 
					
						2022-07-18 17:47:39 +02:00 
						 
				 
			
				
					
						
							
							
								Many the fish 
							
						 
					 
					
						
						
							
						
						a277daa1f2 
					 
					
						
						
							
							Update milli/src/search/matches/mod.rs  
						
						
						
						
					 
					
						2022-07-18 17:47:13 +02:00 
						 
				 
			
				
					
						
							
							
								Many the fish 
							
						 
					 
					
						
						
							
						
						fb794c6b5e 
					 
					
						
						
							
							Update milli/src/search/matches/mod.rs  
						
						
						
						
					 
					
						2022-07-18 17:46:00 +02:00 
						 
				 
			
				
					
						
							
							
								Many the fish 
							
						 
					 
					
						
						
							
						
						1237cfc249 
					 
					
						
						
							
							Update milli/src/search/matches/mod.rs  
						
						
						
						
					 
					
						2022-07-18 17:45:37 +02:00 
						 
				 
			
				
					
						
							
							
								Many the fish 
							
						 
					 
					
						
						
							
						
						d7fd5c58cd 
					 
					
						
						
							
							Update milli/src/search/matches/mod.rs  
						
						
						
						
					 
					
						2022-07-18 17:45:06 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						fc9f3f31e7 
					 
					
						
						
							
							Change DocumentsBatchReader to access cursor and index at same time  
						
						... 
						
						
						
						Otherwise it is not possible to iterate over all documents while
using the fields index at the same time. 
						
						
					 
					
						2022-07-18 16:08:14 +02:00 
						 
				 
			
				
					
						
							
							
								Loïc Lecrenier 
							
						 
					 
					
						
						
							
						
						ab1571cdec 
					 
					
						
						
							
							Simplify Transform::read_documents, enabled by enriched documents reader  
						
						
						
						
					 
					
						2022-07-18 12:45:47 +02:00 
						 
				 
			
				
					
						
							
							
								Many the fish 
							
						 
					 
					
						
						
							
						
						e261ef64d7 
					 
					
						
						
							
							Update milli/src/search/matches/mod.rs  
						
						... 
						
						
						
						Co-authored-by: Clément Renault <clement@meilisearch.com > 
						
						
					 
					
						2022-07-18 10:18:51 +02:00 
						 
				 
			
				
					
						
							
							
								Many the fish 
							
						 
					 
					
						
						
							
						
						1da4ab5918 
					 
					
						
						
							
							Update milli/src/search/matches/mod.rs  
						
						... 
						
						
						
						Co-authored-by: Clément Renault <clement@meilisearch.com > 
						
						
					 
					
						2022-07-18 10:18:03 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						448114cc1c 
					 
					
						
						
							
							Fix the benchmarks with the new indexation API  
						
						
						
						
					 
					
						2022-07-12 15:22:09 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						25e768f31c 
					 
					
						
						
							
							Fix another issue with the nested primary key selector  
						
						
						
						
					 
					
						2022-07-12 15:14:07 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						192793ee38 
					 
					
						
						
							
							Add some tests to check for the nested documents ids  
						
						
						
						
					 
					
						2022-07-12 15:14:07 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						a892a4a79c 
					 
					
						
						
							
							Introduce a function to extend from a JSON array of objects  
						
						
						
						
					 
					
						2022-07-12 15:14:06 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						dc61105554 
					 
					
						
						
							
							Fix the nested document id fetching function  
						
						
						
						
					 
					
						2022-07-12 15:14:06 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						2eec290424 
					 
					
						
						
							
							Check the validity of the latitute and longitude numbers  
						
						
						
						
					 
					
						2022-07-12 15:14:06 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						5d149d631f 
					 
					
						
						
							
							Remove tests for a function that no more exists  
						
						
						
						
					 
					
						2022-07-12 15:14:06 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						0bbcc7b180 
					 
					
						
						
							
							Expose the DocumentId struct to be sure to inject the generated ids  
						
						
						
						
					 
					
						2022-07-12 15:14:06 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						d1a4da9812 
					 
					
						
						
							
							Generate a real UUIDv4 when ids are auto-generated  
						
						
						
						
					 
					
						2022-07-12 15:14:06 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						c8ebf0de47 
					 
					
						
						
							
							Rename the validate function as an enriching function  
						
						
						
						
					 
					
						2022-07-12 15:14:06 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						905af2a2e9 
					 
					
						
						
							
							Use the primary key and external id in the transform  
						
						
						
						
					 
					
						2022-07-12 15:14:05 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						742543091e 
					 
					
						
						
							
							Constify the default primary key name  
						
						
						
						
					 
					
						2022-07-12 14:55:52 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						5f1bfb73ee 
					 
					
						
						
							
							Extract the primary key name and make it accessible  
						
						
						
						
					 
					
						2022-07-12 14:55:52 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						6a0a0ae94f 
					 
					
						
						
							
							Make the Transform read from an EnrichedDocumentsBatchReader  
						
						
						
						
					 
					
						2022-07-12 14:55:52 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						dc3f092d07 
					 
					
						
						
							
							Do not leak an internal grenad Error  
						
						
						
						
					 
					
						2022-07-12 14:55:52 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						8ebf5eed0d 
					 
					
						
						
							
							Make the nested primary key work  
						
						
						
						
					 
					
						2022-07-12 14:55:52 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						19eb3b4708 
					 
					
						
						
							
							Make sur that we do not accept floats as documents ids  
						
						
						
						
					 
					
						2022-07-12 14:55:52 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						2ceeb51c37 
					 
					
						
						
							
							Support the auto-generated ids when validating documents  
						
						
						
						
					 
					
						2022-07-12 14:55:51 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						399eec5c01 
					 
					
						
						
							
							Fix the indexation tests  
						
						
						
						
					 
					
						2022-07-12 14:55:51 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						fcfc4caf8c 
					 
					
						
						
							
							Move the Object type in the lib.rs file and use it everywhere  
						
						
						
						
					 
					
						2022-07-12 14:55:51 +02:00 
						 
				 
			
				
					
						
							
							
								Kerollmops 
							
						 
					 
					
						
						
							
						
						0146175fe6 
					 
					
						
						
							
							Introduce the validate_documents_batch function  
						
						
						
						
					 
					
						2022-07-12 14:55:51 +02:00