Skip to content

Commit 673cfca

Browse files
committed
Fix apiary
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
1 parent 8fd284e commit 673cfca

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

apiary.apib

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ The repository path is relative to source root.
643643
+ repository - repository path with native path separators (of the machine
644644
running the service) starting with path separator for which to return type
645645

646-
## Search [/search{?full,def,symbol,path,hist,type,projects,maxresults,start}]
646+
## Search [/search{?full,def,symbol,path,hist,type,projects,maxresults,start,sort}]
647647

648648
## return search results [GET]
649649

@@ -657,10 +657,15 @@ The repository path is relative to source root.
657657
+ projects (optional, string) - projects to search in
658658
+ maxresults (optional, string) - maximum number of documents whose hits will be returned (default 1000)
659659
+ start (optional, string) - start index from which to return results
660-
+ sort (optional, string) - sort order for results (default: "relevancy"). Possible values are:
661-
- `relevancy` - by relevancy (Lucene score)
662-
- `fullpath` - by file path
663-
- `lastmodtime` - by last modification date of the file.
660+
+ sort: relevancy (optional, enum[string])
661+
+ Enum
662+
+ relevancy
663+
+ fullpath
664+
+ lastmodtime
665+
+ Description: Sort order for results. Possible values:
666+
- `relevancy`: Sort by Lucene score (most relevant first).
667+
- `fullpath`: Sort by file path (alphabetical).
668+
- `lastmodtime`: Sort by last modification date (newest first).
664669

665670
+ Response 200 (application/json)
666671
+ Body

0 commit comments

Comments
 (0)