Hi, I have an index with two fields "name" and "population". Some of the documents have the "population" field empty.
I would like to search for a value X in field "name" with the following condition: 1. if the field is empty - return results for name:X 2. else set the minimum value for the "population" field to 10: name:X AND population: [10 TO *] The population field should not influence the score. Could you please help me out with the query construction? I have tried conditional statements with exists(), but it seems it does not suit the case. Thanks, Gin