Search for Empty Integer Lists
(Seth Dillingham - 8:24:20 PM)
AttSearchEngine's indexer "List_Integer" now indexes empty lists, and the List_Integer.search method has been updated to allow searches for empty lists.
Only newly indexed items will take advantage of this, so if you need to use this with an existing index, then you must reindex your content.
There are two ways to search for an empty list. To search only for items with empty lists, use the equalTo operator and an empty list, like so:
local ( searchObject );
new( tableType, @searchObject );
searchObject.myIntLIstField = {{}, AttSearchEngine.operators.equalTo}
To search for items with lists which are either empty or contain at least one of a list of values, use the containsAny operator and add an empty list to your search list, like so:
local ( searchObject );
new( tableType, @searchObject );
searchObject.myIntLIstField = {{0, 7, 9, {}}, AttSearchEngine.operators.containsAny}
searchObject would then be copied to your search request, and passed to AttSearchEngine.search. See AttSearchEngine.#Documentation for more information on searching.
Search for Items with Empty Text
(Seth Dillingham - 6:43:51 PM)
AttSearchEngine's text indexer now indexes empty strings, and the text.search method has been updated to support searches for empty strings.
Only newly indexed items will take advantage of this, so if you need to take advantage of this in an existing index, then you must reindex your content.
To search for empty strings, use the equalTo operator in your search request. As always, set the search param to a list, like so:
object.attribute = {"", AttSearchEngine.operators.equalTo};