Project

General

Profile

« Previous | Next » 

Revision 50946

updated the number of results

View differences:

DLIESConnector.py
73 73
                                                                              path=start + '.publisher').bucket(
74 74
            'all_pubs', 'terms',
75 75
            field=start + '.publisher.name',
76
            size=10000)
76
            size=1000000)
77 77

  
78 78
        response = search_object.execute()
79 79
        if pub_name:
......
109 109
                q = q & item
110 110
        search_object = Search(using=self.client, index=self.index_name).doc_type('scholix').query(q)
111 111

  
112
        return search_object[page:page + 10].execute()
112
        return search_object[page:page + 100].execute()
113 113

  
114 114

  
115 115
    def realtionToPid(self, pid, pidType=None, datasource=None, typology=None, page=0):
......
126 126

  
127 127
        if len(filters):
128 128
            search_object = search_object.filter(Q('bool', must=filters))
129
        return search_object[page:page + 10].execute()
129
        return search_object[page:page + 100].execute()
130 130

  
131 131
    def realtionToTypology(self, typology, page=0):
132 132
        search_object = Search(using=self.client, index=self.index_name).doc_type('scholix').query(
133 133
            self.create_typology_query(typology))
134
        return search_object[page:page + 10].execute()
134
        return search_object[page:page + 100].execute()
135 135

  
136 136

  
137 137
dli_index = DLIESConnector()

Also available in: Unified diff