Solr Query : Search for fields containing only white spaces -


How do I write a solr query to search that field with only white space? For example, "Airtel", "Schmidt": 1, "Phone_Status": - 1, "user_hash": "52565f64ba3e8df1aa", "contact_name": "", "snaptype": 1,}

If you see the contact_name field, then it is just two places, how can I filter a record that contains only empty space for a particular field?

I have answered a similar question.

In the page they say that you can use the following question to find all empty questions.

  -field: [* TO *] finds all the documents without the value of the field    

Comments