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

Implement more gambits #256

Open
tobscure opened this Issue Aug 27, 2015 · 3 comments

Comments

Projects
None yet
4 participants
@tobscure
Member

tobscure commented Aug 27, 2015

Gambits are little pieces of search criteria that can be specified in the search string. Just like GitHub's search syntax.

Right now we've only implemented a few: is:unread and author:username in core, and tag:foo,bar, is:followed, is:ignored, is:sticky, and is:locked in their respective extensions.

We probably want to implement the following gambits:

  • Multiple author search, separated by commas (author:username1,username2)
  • created:date where date is the same syntax as on GitHub
  • updated:date
  • contributor:username1,username2
  • replies:number where number is the same syntax as on GitHub
  • ip:123.123.123.123

Pending #257, we will also want to have an in:title gambit which scopes fulltext search to only look in discussion titles.

We should also implement more gambits when searching users (i.e. /api/users?q=whatever), such as for filtering by group.

This is a precursor to an extensible advanced search interface which will come later.

@tobscure tobscure referenced this issue Aug 28, 2015

Closed

v0.1.0 roadmap (old) #74

19 of 53 tasks complete

@justjavac justjavac referenced this issue Sep 7, 2015

Open

Flarum v0.1.0 开发路线图 #3

18 of 53 tasks complete

@tobscure tobscure added the Backend label Sep 16, 2015

@Albert221

This comment has been minimized.

Show comment
Hide comment
@Albert221

Albert221 Jan 3, 2016

Contributor

See #703.

Contributor

Albert221 commented Jan 3, 2016

See #703.

tobscure added a commit that referenced this issue Jan 4, 2016

Merge pull request #703 from Albert221/master
#256 Added multiple author search gambit

Albert221 added a commit to Albert221/core that referenced this issue Jan 4, 2016

@franzliedke franzliedke modified the milestone: 0.1.x Apr 7, 2016

franzliedke added a commit that referenced this issue Jan 3, 2017

Add group gambit to support search user by group name (#1073)
Add group gambit to support search user by group name

/api/users?filter[q]=group:admin
/api/users?filter[q]=group:admin,mod

refer to #256

@tobscure tobscure removed this from the 0.1.x milestone Jul 22, 2017

@BartVB

This comment has been minimized.

Show comment
Hide comment
@BartVB

BartVB Aug 15, 2017

Can I put in a request for searching by IP address? We use that to track down spammers and their posts. Obviously this should be behind some kind of permission.

BartVB commented Aug 15, 2017

Can I put in a request for searching by IP address? We use that to track down spammers and their posts. Obviously this should be behind some kind of permission.

@franzliedke

This comment has been minimized.

Show comment
Hide comment
@franzliedke

franzliedke Aug 30, 2017

Member

@BartVB Good idea. If @tobscure agrees, we can add that to the list at the top of this issue.

Member

franzliedke commented Aug 30, 2017

@BartVB Good idea. If @tobscure agrees, we can add that to the list at the top of this issue.

@franzliedke franzliedke removed the Backend label Jul 21, 2018

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