tantivy #5
@@ -672,7 +672,7 @@ impl Cmd {
 | 
				
			|||||||
                               i += 2;
 | 
					                               i += 2;
 | 
				
			||||||
                               
 | 
					                               
 | 
				
			||||||
                               // Parse field options until we hit another field name or end
 | 
					                               // Parse field options until we hit another field name or end
 | 
				
			||||||
                               while i < cmd.len() && !["TEXT", "NUMERIC", "TAG", "GEO"].contains(&cmd[i].to_uppercase().as_str()) {
 | 
					                               while i < cmd.len() && ["WEIGHT", "SORTABLE", "NOINDEX", "SEPARATOR", "CASESENSITIVE"].contains(&cmd[i].to_uppercase().as_str()) {
 | 
				
			||||||
                                   options.push(cmd[i].to_uppercase());
 | 
					                                   options.push(cmd[i].to_uppercase());
 | 
				
			||||||
                                   i += 1;
 | 
					                                   i += 1;
 | 
				
			||||||
                                   
 | 
					                                   
 | 
				
			||||||
@@ -685,7 +685,7 @@ impl Cmd {
 | 
				
			|||||||
                               
 | 
					                               
 | 
				
			||||||
                               schema.push((field_name, field_type, options));
 | 
					                               schema.push((field_name, field_type, options));
 | 
				
			||||||
                           }
 | 
					                           }
 | 
				
			||||||
                           
 | 
					
 | 
				
			||||||
                           Cmd::FtCreate {
 | 
					                           Cmd::FtCreate {
 | 
				
			||||||
                               index_name,
 | 
					                               index_name,
 | 
				
			||||||
                               schema,
 | 
					                               schema,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user