Beispiel #1
0
    def _perform_query(self, args):
        search_query = SearchQuery()
        if not args:
            search_query.paginator = Paginator()
            search_query.paginator.page_size = 100

        search_query.set_params(args)

        search_result = self.mgitype_service.search(search_query)
        return search_result.serialize()
Beispiel #2
0
    def _perform_query(self, args):
        search_query = SearchQuery()
        if not args:
            search_query.paginator = Paginator()
            search_query.paginator.page_size = 100

        search_query.set_params(args)

        search_result = self.actualdb_service.search(search_query)
        return search_result.serialize()
Beispiel #3
0
 def post(self):
     """
     Search GxdIndexRecords
     """
     search_query = SearchQuery()
     search_query.set_params(request.json)
     
     # set a limit on the results
     paginator = Paginator()
     paginator.page_size = 2000
     search_query.paginator = paginator
     
     search_results = self.gxdindex_service.search(search_query)
     
     app.logger.debug(search_results.serialize())
     
     return search_results.serialize()
Beispiel #4
0
 def post(self):
     """
     Search GxdIndexRecords
     """
     search_query = SearchQuery()
     search_query.set_params(request.json)
     
     # set a limit on the results
     paginator = Paginator()
     paginator.page_size = 2000
     search_query.paginator = paginator
     
     search_results = self.gxdindex_service.search(search_query)
     
     app.logger.debug(search_results.serialize())
     
     return search_results.serialize()