You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: Search

Use the GET method on /search endpoint to fetch the list of files matching the specified query.


curl \
	http://{serverUrl}/fs/{fileSystemName}/search?query={query}&start={start}&pageSize={pageSize}&sort={sort}  \


Query parameter Required Description
query Yes The query containing search criteria (you can use the built-in fields or metadata entries) consistent with Lucene syntax
sort No The fields to sort by
start No The start number to read index results
pageSize No The max number of results that will be returned (Default: 25)


Status code Description
200 OK
Return Value Description
JSON JSON object representing search results


curl \
	-X GET http://localhost:8080/fs/NorthwindFS/search?query=AllowRead:Everyone&sort=__key
< HTTP/1.1 200 OK
                // ...
                // ...
            "HumaneTotalSize":"1.15 MBytes"