Skip to content

xmlprc search improvements #3827

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 26, 2018
Merged

xmlprc search improvements #3827

merged 1 commit into from
Apr 26, 2018

Conversation

ewdurbin
Copy link
Member

harmonizes xmlrpc search to our main search. this dramatically improves it's value.

harmonizes xmlrpc search to our main search. this dramatically improves it's value
@ewdurbin
Copy link
Member Author

addresses #3819 #3717

queries.append(q)

if operator == "and":
query = request.es.query("bool", must=queries)
else:
query = request.es.query("bool", should=queries)

results = query[:1000].execute()
results = query[:100].execute()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@wimglenn wimglenn Jul 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This limit could do with some mention in the docs (here or in pip?). Expected results are mysteriously missing from "pip search" if you are searching a common term, and it's not clear why unless digging through the warehouse source code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ewdurbin ewdurbin merged commit 047ec67 into master Apr 26, 2018
@ewdurbin ewdurbin deleted the xmlrpc_search_tweaks branch April 26, 2018 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants