Lines Matching refs:search
99 # This rule handles valid search terms with a colon in them. If
151 # This rule handles the general search terms as well as
195 to perform the search."""
249 # performing the search.
440 VALIDATION_STRING = { 1:'Return from search v1\n' }
560 expected to implement search, allow_version, set_info, and to
581 search being executed. For a boolean query, it only needs to
587 def search(self, *args):
588 """Distributes the search to the two children and returns a
591 return set(self.lc.search(None, *args)), \
592 set(self.rc.search(None, *args))
628 def search(self, restriction, *args):
629 """Performs a search over the two children and combines
633 which the search shall be performed. Only boolean queries will
641 # previous terms must be used as the domain of search.
645 lc_it = self.lc.search(restriction, *args)
646 return self.rc.search(lc_it, *args)
652 lc_set, rc_set = BooleanQuery.search(self, *args)
665 def search(self, restriction, *args):
666 """Performs a search over the two children and combines
670 actions within the search domain. If it's not None,
679 lc_set, rc_set = BooleanQuery.search(self, *args)
685 for i in itertools.chain(self.lc.search(restriction,
686 *args), self.rc.search(restriction, *args)):
696 # restriction to the child search. If this turns out
703 for j in itertools.chain(self.lc.search([i],
704 *args), self.rc.search([i], *args)):
729 search being executed. It only needs to pass whatever
751 def search(self, restriction, *args):
752 """Takes the results of its child's search and converts the
756 the domain over which search should be performed. It should
760 self.query.search(restriction, *args),
774 """Class representing a phrase search in the AST"""
816 search being executed. It only needs to pass whatever
836 returned, otherwise use the search phrase."""
844 def search(self, restriction, *args):
845 """Perform a search for the given phrase. The child is used to
849 function that returns actions within the search domain."""
855 in self.query.search(restriction, *args)
880 search term pulled apart during parsing.
883 fourth field (the token) of the structured search."""
885 # For efficiency, especially on queries which search over
888 # needed filtering as it does the search.
903 search being executed. It only needs to pass whatever
908 def search(self, restriction, *args):
909 """Perform a search for the structured query. The child has
914 return self.query.search(restriction, *args)
933 results into the format expected by the callers of search."""
955 which is expected by the callers of search. It also handles
958 # Need to replace "1" with current search version, or something
979 search being executed. This is also where the starting point
990 def search(self, *args):
991 """Perform search by taking the result of the child's search
996 return self.finalize_results(self.query.search(None, *args))
1044 # domain of search.
1056 # information specific to the particular search index that this
1136 """Add the information needed to restrict the search domain
1146 # Because users will rarely want to search on package names
1148 # name search is treated as a prefix match. To accomplish
1163 """Ensures that the search is a prefix match. Primarily used
1171 """Sets the information needed to search which is specific to
1172 the particular index used to back the search.
1180 'case_sensitive' is a boolean which determines whether search
1238 # search.
1306 search results. restriction is a generator function that
1307 returns actions within the search domain."""
1334 # If this search term matches any of the tokens the
1350 """Legacy function used to search indexes which have a pkg
1402 # in it, do the glob search.
1472 # If offsets is None and the term was only wildcard search