Skip to content
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

Get all the documents in an Index #10

Open
DNadar opened this issue Jul 6, 2016 · 2 comments
Open

Get all the documents in an Index #10

DNadar opened this issue Jul 6, 2016 · 2 comments

Comments

@DNadar
Copy link

DNadar commented Jul 6, 2016

Is there any Rest API to load all the Documents Present in the Index file.

Currently, i am indexing the Document (in all 25 document) and on search i am able to get the Corresponding Documents in the Search text input.

How to load the entire Document (all 25 document) irrespective of any text search.

@mschoch
Copy link
Contributor

mschoch commented Jul 6, 2016

@mschoch
Copy link
Contributor

mschoch commented Jul 6, 2016

Sorry I didn't realize you'd created 2 issues. The UI doesn't support doing it directly, but the rest API supports the match_all query. See https://github.com/blevesearch/bleve/blob/master/query.go#L212

Just create a query object with "match_all": {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants