Skip to content

Results#98

Open
anne27 wants to merge 3 commits intoOpenGenus:masterfrom
anne27:results
Open

Results#98
anne27 wants to merge 3 commits intoOpenGenus:masterfrom
anne27:results

Conversation

@anne27
Copy link
Copy Markdown
Contributor

@anne27 anne27 commented Mar 15, 2018

Checklist

  • My branch is up-to-date with the upstream develop branch.
  • I have added necessary documentation (if appropriate). [Not applicable]

Which issue does this PR fix?:
fixes: #70

This PR resolves issue #70 (The random keywords in search box aren't always having a search result).

Why do we need this PR?:

For keyword linear search, the permutations generated must be linear_search, search_linear, linear and search. The search should be able to handle such cases. We aim to broaden the search experience of users through this PR and the PRs that follow.

Thanks,
Team GalSquared | RGSoC

Comment thread search/views.py Outdated
if request.method == 'GET':
query = re.escape(request.GET['q']).replace('\ ', ' ')

#add
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please remove comments that such this, since the diff will highlight those new code line or modified one.

Comment thread search/views.py
return all_insert(X[0], e) + for_each(X[1:],e) if X else []

def permute(x):
return [x] if len(x) < 2 else for_each( permute(x[1:]) , x[0])
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Standard libs have already implemented this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@iattempt Just updated the comments.

@AdiChat
Copy link
Copy Markdown
Member

AdiChat commented Apr 4, 2018

The Travis Build must pass to get this merged.

You have made an important contribution which will improve the search results. Kindly take a look at the errors here and make suitable changes. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The random keywords in search box aren't always having a search result

4 participants