Revision 61430
Added by Sandro La Bruzzo almost 3 years ago
ScholixConnector.py | ||
---|---|---|
89 | 89 |
|
90 | 90 |
|
91 | 91 |
def links(self, provider=None, s_pid=None, t_pid=None, s_publisher=None, t_publisher=None, s_pid_type=None, |
92 |
t_pid_type=None, target_Type=None, source_Type=None,page=0): |
|
92 |
t_pid_type=None, target_Type=None, source_Type=None,page=0):
|
|
93 | 93 |
queries = [] |
94 | 94 |
if provider: |
95 | 95 |
log.info("PROVIDER NOT NONE: {}".format(provider)) |
... | ... | |
124 | 124 |
else: |
125 | 125 |
q = q & item |
126 | 126 |
log.debug("REQUEST CREATED {}".format(q)) |
127 |
search_object = Search(using=self.connection_pool.get_connection(), index=self.index_name).doc_type('scholix').query(q) |
|
127 |
search_object = Search(using=self.connection_pool.get_connection(), index=self.index_name).doc_type('scholix').query(q) |
|
128 |
print("SONO QUIIII") |
|
128 | 129 |
print (search_object.to_dict()) |
129 | 130 |
log.debug("Page request size is {}".format(page)) |
130 | 131 |
if page > 9999: |
Also available in: Unified diff
fixed scholexplorer to use the new datamodel