when I try from the PHP SDK to search all the documents with ii being “” I get no results:
$conjunctionQuery[] = (new MatchSearchQuery("")) ->field("ii");
I am doing a ConjunctionSearchQuery, so this is just a part of the query
I tried with MatchPhraseSearchQuery and MatchSearchQuery but none seems to work correctly. the ii can be either empty, or it can conain an UUID of the format: “2fa80bae-2eed-4291-bb78-09cdb7d80003”
What can I do to be able to find the documents with either an empty field “” or an UUID?
FTS does not differentiate between missing fields or null values during search. So searching for empty field content is unfortunately something we don’t support.
N1QL however can - you can look into creating a secondary index and running SQL-like queries via the query workbench to help you here with IS_NULL or IS_MISSING.
so, there is no way in which I could exclude the results with empty field? (not returning results with something in the field)
not sure if is clear. If I have a a search results with 5000 rows, from these 5000, 150 have this field empty. isn’t any option to return just the 4850 results?