I have a file containing keywords which I need to search for in the index. It is a csv file containing 3 headers - keyword,brandName,bucketName
What I need to do is search for the keyword in all fields of the index if brandName and bucketName values are '*', and if they are something else then I need to search the keyword in the fields whose value matches the bucketName and brandName. My index contains many fields including brandName and bucketName.
Please advise as to which search query I should use. I am not able to use multimatch query since number of fields for a document is not fixed.