Closed crepererum closed 9 years ago
I did some digging on this. In commit aebbd45, the one before 4b95199, get_nearest_terms_in_idxphrase_with_collection
was in the same file as its use: https://github.com/inveniosoftware/invenio/blob/aebbd45f5aae03fd70804192744a4b80d258f9b4/invenio/legacy/search_engine/__init__.py#L3487. So we need to add back the import from its new location in 4b95199.
Then, a parameter name changed from f
to index_id
everywhere except that in the function declaration.
Finally, when no model is given (which is the case when clicking "browse" as described in the issue), the method should return an empty list and not None
, since we will eventually try to map
over it: https://github.com/inveniosoftware/invenio/blob/f6bee4828bf93f66bef1885f09c421d1eb083c6f/invenio/modules/search/views/search.py#L276.
I tentatively created https://github.com/jacquerie/invenio/commit/901a04db18d3eee34eea4b8fd842a1fb59f55554 that fixes the present issue. Should I submit a PR?
I tentatively created jacquerie@901a04d that fixes the present issue. Should I submit a PR?
Yes. Please add FIX
label to commit messages. Thanks
Affected versions
Everything since 4b95199889cbf814a2ef134cb149946f44a58d1e, so
maint-2.1
andmaster
.Error
Steps to reproduce
Method a:
/
+
-Party near the search field,Browse
at the bottom right in the option field that appearsMethod b:
/search?action_browse=
Cause
4b95199889cbf814a2ef134cb149946f44a58d1e