“” in boelan query

i have 2 question

  1. i have documents like
    type:”a” or ”b”
    lid:””or uuid
    İ want to search some thing where type a and lid uuid (it mean not “”)
    İts my query
    {“san mes* +type:a: -lid:\”\” ”}
    İts found word which is start with mes and contains san and type a but lid doesnt work if i change - to + query found noting

  2. i use nodejs how i can write this query on nodejs