Help - Searching
How the system processes searches
This is a fairly complex process, but one that is important to understand by anyone who wishes
to build complex searches, especially complex compound searches.
Steps taken to process a standard search.
- Get working sample list - The system first gets the default list of samples
based on whether Published sources and Migrant dialects are included or not.
- Get samples matching criterion - The system next gets the first criterion
defined in the search and generates a list of samples that match that criterion.
- Generate new working list - The system creates a new sample list containing
all the samples that exist in both the current working sample list and the list built from the
search criterion. This new list, then, replaces the current working sample list.
- Get samples matching next criterion - The system gets the next criterion defined in the
search and generates a list of samples that match that criterion.
- Repeat 3 & 4 until no more criteria - The system cycles through each of the
criteria defined in the search repeating steps 3 and 4 for each.
- Finish - When all criteria have been processed the current working sample list
will contain only those samples that match all the criteria defined in the search.
Steps taken to process a compound search.
- Examine first search - The systems looks at the first search to determine whether it is a
compound search or a standard search.
- Process first search - If it is
a standard search it is processed as in the steps above. If it is a compound search it is processed via these steps,
starting from step one.
- Process second search - If it is
a standard search it is processed as in the steps above. If it is a compound search it is processed via these steps,
starting from step one.
- Get compound logic - The system retrieves the LOGIC used to combine the two searches to create the
compound search.
- Process results with LOGIC - The system takes the list of samples from BOTH searches and generates
a third list based on logical comparison of the two lists, using the compounding LOGIC.
- Finish.
LOGIC definitions
- AND : All samples that are in BOTH searches only.
- NAND : ANY samples that are NOT in BOTH searches.
- OR : ALL samples that are in EITHER search.
- XOR : ALL samples that are in EITHER search BUT NOT in BOTH.
- NOR : ANY samples that are NOT in EITHER search.