-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Feature/14 search #19
Conversation
I removed not necessary left joins from the count query as it isnt required in any way. |
src/main/java/com/sublinks/sublinksapi/api/lemmy/v3/search/controllers/SearchController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/sublinks/sublinksapi/search/services/SearchService.java
Outdated
Show resolved
Hide resolved
@TheJuki i never worked with the @Apiresponse i hope i did it right. |
@@ -50,7 +50,22 @@ public String getPostMd5Hash(final Post post) { | |||
} | |||
} | |||
|
|||
public Person getPostCreator(final Post post) { | |||
public String getStringMd5Hash(final String post) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the same method I implemented just copied?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If so we should move them both to a shared public utility
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The core logic is literally the same but i find it a bit overkill to require the WHOLE Post THEN just using the url.
Added Search capability.
Implemented /api/v3/search
Implemented New / Old Sorting
Implemented Pagination / Limit ( MAX 20 Lemmy default )
Implemented All/Post/Comment/Url/Community/User searches
closes #14