Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Essem
Sharkey
Commits
8376b10b
Commit
8376b10b
authored
7 years ago
by
syuilo
Browse files
Options
Downloads
Patches
Plain Diff
#1035
parent
52ea4439
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/api/endpoints/posts/search.ts
+3
-1
3 additions, 1 deletion
src/api/endpoints/posts/search.ts
src/web/docs/search.ja.pug
+6
-0
6 additions, 0 deletions
src/web/docs/search.ja.pug
with
9 additions
and
1 deletion
src/api/endpoints/posts/search.ts
+
3
−
1
View file @
8376b10b
...
...
@@ -99,7 +99,9 @@ async function byNative(res, rej, me, text, userId, following, mute, reply, repo
if
(
text
)
{
push
({
$and
:
text
.
split
(
'
'
).
map
(
x
=>
({
text
:
new
RegExp
(
escapeRegexp
(
x
))
text
:
x
[
0
]
==
'
-
'
?
{
$ne
:
new
RegExp
(
escapeRegexp
(
x
))
}
:
new
RegExp
(
escapeRegexp
(
x
))
}))
});
}
...
...
This diff is collapsed.
Click to expand it.
src/web/docs/search.ja.pug
+
6
−
0
View file @
8376b10b
...
...
@@ -5,6 +5,12 @@ p
| キーワードを半角スペースで区切ると、and検索になります。
| 例えば、「git コミット」と検索すると、「gitで編集したファイルの特定の行だけコミットする方法がわからない」などがマッチします。
section
h2 キーワードの除外
p キーワードの前に「-」(ハイフン)をプリフィクスすると、そのキーワードを含まない投稿に限定します。
p 例えば、「gitというキーワードを含むが、コミットというキーワードは含まない投稿」を検索したい場合、クエリは以下のようになります:
code git -コミット
section
h2 オプション
p
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment