I have a documnet that contains the following data car { id: guid name: string sku: list<barcode> }
Now, The barcodes dont have a pattern. It can be either one of the follwings: ABCD-EF34GD-JOHN ABCD-C08-YUVF I want to index my documents so that search for 1. ABCD will return both. 2. AB will return both. 3. JO - will return ABCD-EF34GD-JOHN but not car with name john. so far I have defined car and sku as text_en. But I dont get bulletes no 2 and 3. IS there a better way to define sku attribute. Thanks.