Revision 50946
Added by Sandro La Bruzzo over 6 years ago
DLIESConnector.py | ||
---|---|---|
114 | 114 |
|
115 | 115 |
if len(filters): |
116 | 116 |
search_object = search_object.filter(Q('bool', must=filters)) |
117 |
return self.convertScholix(search_object[page:page + 10].execute()) |
|
117 |
return self.convertScholix(search_object[page:page + 100].execute())
|
|
118 | 118 |
|
119 | 119 |
def realtionToTypology(self, typology, page=0): |
120 | 120 |
search_object = Search(using=self.client, index=self.index_name).doc_type('scholix').query( |
121 | 121 |
self.create_typology_query(typology)) |
122 |
return self.convertScholix(search_object[page:page + 10].execute()) |
|
122 |
return self.convertScholix(search_object[page:page + 100].execute())
|
|
123 | 123 |
|
124 | 124 |
def realtionFromDatasource(self, datasource, page=0): |
125 | 125 |
search_object = Search(using=self.client, index=self.index_name).doc_type('scholix').query( |
126 | 126 |
self.create_dataSource_query(datasource)) |
127 |
return self.convertScholix(search_object[page:page + 10].execute()) |
|
127 |
return self.convertScholix(search_object[page:page + 100].execute())
|
|
128 | 128 |
|
129 | 129 |
def realtionFromPublisher(self, publisher, page=0): |
130 | 130 |
search_object = Search(using=self.client, index=self.index_name).doc_type('scholix').query( |
131 | 131 |
self.create_publisher_query(publisher)) |
132 |
return self.convertScholix(search_object[page:page + 10].execute()) |
|
132 |
return self.convertScholix(search_object[page:page + 100].execute()) |
Also available in: Unified diff
updated the number of results