User login

login

Help

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

  1. Examine first search - The systems looks at the first search to determine whether it is a compound search or a standard search.
  2. 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.
  3. 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.
  4. Get compound logic - The system retrieves the LOGIC used to combine the two searches to create the compound search.
  5. 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.
  6. Finish.

LOGIC definitions